Skip to content

Commit

Permalink
Fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Jul 25, 2024
1 parent 54df852 commit 04ac2b1
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@ on:
types:
- published

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 }}
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
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 }}
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

0 comments on commit 04ac2b1

Please sign in to comment.