diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fb7f115..3e3f6ca9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,7 +123,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, 'SofaDefrost') && (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] runs-on: ubuntu-latest continue-on-error: true @@ -170,7 +170,7 @@ jobs: name: ${{ env.RELEASE_NAME }} tag_name: ${{ env.RELEASE_TAGNAME }} fail_on_unmatched_files: false - target_commitish: ${{ env.RELEASE_NAME }} + target_commitish: ${{ github.sha }} body: | Last updated on ${{ env.RELEASE_DATE }} files: |