Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent running publishing workflow on forks #70

Open
michaelwheeler opened this issue Oct 31, 2023 · 0 comments
Open

Prevent running publishing workflow on forks #70

michaelwheeler opened this issue Oct 31, 2023 · 0 comments

Comments

@michaelwheeler
Copy link
Collaborator

The test-publish job will fail with running from a fork.

test-publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/download-artifact@v3
with:
name: package-build
path: dist/
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant