diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20fdd34..fe599b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,14 @@ on: push: branches: - '**' + tags: + - "*.*.*" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build-swiftpm: @@ -34,4 +40,8 @@ jobs: needs: tests if: github.ref == 'refs/heads/main' uses: oversizedev/GithubWorkflows/.github/workflows/bump.yml@main - secrets: inherit + + release: + name: Create Release + if: github.ref != 'refs/heads/main' && startsWith(github.ref, 'refs/tags/') + uses: oversizedev/GithubWorkflows/.github/workflows/release.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 0242e2a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Release - -on: - push: - tags: - - "*.*.*" - -jobs: - build: - name: Create release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Release - uses: softprops/action-gh-release@v1