Skip to content

Fix permissions on pypi publish #3

Fix permissions on pypi publish

Fix permissions on pypi publish #3

Workflow file for this run

# The cibuildwheel action triggers on creation of a release, this

Check failure on line 1 in .github/workflows/publish_pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_pypi.yml

Invalid workflow file

(Line: 15, Col: 7): Unexpected value 'id-tokens'
# triggers on publication.
# The expected workflow is to create a draft release and let the wheels
# upload, and then hit 'publish', which uploads to PyPi.
on:
release:
types:
- published
jobs:
upload_pypi:
uses: explosion/gha-cibuildwheel/.github/workflows/publish_pypi.yml@main
permissions:
id-tokens: write
contents: read
with:
pypi-package-name: 'weasel'