diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 941c2bee..82c09249 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write - if: startsWith(github.ref, 'refs/tags/api-v') + if: startsWith(github.ref, 'refs/tags/api-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) steps: - uses: actions/download-artifact@v4 with: @@ -58,9 +58,6 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} docs: needs: [publish] diff --git a/.github/workflows/build-protocol.yml b/.github/workflows/build-protocol.yml index 18e90e6f..21357a68 100644 --- a/.github/workflows/build-protocol.yml +++ b/.github/workflows/build-protocol.yml @@ -82,7 +82,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write - if: startsWith(github.ref, 'refs/tags/protocol-v') + if: startsWith(github.ref, 'refs/tags/protocol-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) steps: - uses: actions/download-artifact@v4 with: @@ -90,9 +90,6 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} docs: needs: [publish] diff --git a/.github/workflows/build-rtc.yml b/.github/workflows/build-rtc.yml index 791b57f3..d457eeef 100644 --- a/.github/workflows/build-rtc.yml +++ b/.github/workflows/build-rtc.yml @@ -126,7 +126,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write - if: startsWith(github.ref, 'refs/tags/rtc-v') + if: startsWith(github.ref, 'refs/tags/rtc-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) steps: - uses: actions/download-artifact@v4 with: @@ -135,9 +135,6 @@ jobs: merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} docs: needs: [publish]