Skip to content

Commit

Permalink
Don't run deploy job on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed May 31, 2023
1 parent 0507536 commit 2510bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_pypi.yml
Expand Up @@ -80,6 +80,7 @@ jobs:
deploy:
name: Publish to (Test)PyPI
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository == 'brian-team/brian2'
environment: release
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand All @@ -93,7 +94,6 @@ jobs:
name: packages
path: dist/
- name: Publish distribution 📦 to Test PyPI
if: github.ref == 'refs/heads/master' && github.repository == 'brian-team/brian2'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Expand Down

0 comments on commit 2510bce

Please sign in to comment.