Skip to content

.github/workflows/publish_pypi.yml #2

.github/workflows/publish_pypi.yml

.github/workflows/publish_pypi.yml #2

Workflow file for this run

# The cibuildwheel action triggers on creation of a release, this
# 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:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cymem
permissions:
id-token: write
contents: read
if: github.event_name == 'release' && github.event.action == 'published'
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: robinraju/release-downloader@v1
with:
tag: {{ github.event.release.tag_name }}

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_pypi.yml

Invalid workflow file

The workflow is not valid. .github/workflows/publish_pypi.yml (Line: 27, Col: 16): A mapping was not expected
fileName: '*'
out-file-path: 'dist'
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
#- uses: pypa/gh-action-pypi-publish@release/v1