From 207960025f36f0444e4b10d4357ee3ff064aef1a Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Fri, 29 Nov 2024 00:10:43 +0300 Subject: [PATCH] Upd ci --- .github/workflows/ci.yml | 12 +++++++++++- .github/workflows/release.yml | 16 ---------------- 2 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/release.yml 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