diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 47d6630f2..b1d03e224 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -103,7 +103,7 @@ jobs: # create stable release - name: Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.repository == 'rime/weasel' && startsWith(github.ref, 'refs/tags/') }} with: files: | ./output/archives/weasel*.exe @@ -111,6 +111,7 @@ jobs: body_path: ${{ github.workspace }}/RELEASE_CHANGELOG.md - name: Update testing Appcast + if: ${{ github.repository == 'rime/weasel' }} run: gh workflow run gh-pages.yml -R rime/home --ref master env: GH_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}