From 5238206a283bb57c1a89181e7be0a11cbf921d20 Mon Sep 17 00:00:00 2001 From: epernod Date: Mon, 10 Aug 2026 19:24:23 +0200 Subject: [PATCH] [ci] Fix workflow to not automatically create release on push on fork --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97cfe54..b33a347 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,7 +151,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 @@ -173,7 +173,8 @@ jobs: with: name: ${{ github.ref_name }} tag_name: release-${{ github.ref_name }} - fail_on_unmatched_files: true + fail_on_unmatched_files: false + target_commitish: ${{ github.sha }} files: | artifacts/CGALPlugin_*_Linux.zip artifacts/CGALPlugin_*_Windows.zip