From 1177fdd9d1f39b2e023a235b6040a5c6cfc7d747 Mon Sep 17 00:00:00 2001 From: bakpaul Date: Mon, 8 Apr 2024 11:43:36 +0200 Subject: [PATCH] enable tag release --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1b03691..b7490d0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,7 +134,7 @@ jobs: deploy: name: Deploy artifacts - if: always() && startsWith(github.ref, 'refs/heads/') # we are on a branch (not a PR) + if: always() && startsWith(github.repository, 'sofa-framework') && (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/')) # we are not on a fork and on a branch or a tag (not a PR) needs: [build-and-test] needs: [build-and-test] runs-on: ubuntu-latest continue-on-error: true @@ -157,7 +157,7 @@ jobs: name: ${{ github.ref_name }} tag_name: release-${{ github.ref_name }} fail_on_unmatched_files: false - target_commitish: ${{ github.ref_name }} + target_commitish: ${{ github.sha }} files: | artifacts/BeamAdapter_*_Linux.zip artifacts/BeamAdapter_*_Windows.zip