Skip to content

Commit

Permalink
fix(ci): pypi publish
Browse files Browse the repository at this point in the history
Fix a couple of minor issues with the publishing workflow:

- Only publish releases from tags starting with `v`
- Fix an incorrect name in the downloading of artifacts
- Fix snake_case to kebab-case in a publish parameter

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Oct 3, 2023
1 parent 91850f0 commit e266ae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@ jobs:
publish:
name: Publish wheels
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
needs: [check]
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
name: wheels
path: wheelhouse

- name: Push build artifacts to PyPI
uses: pypa/[email protected]
with:
skip_existing: true
skip-existing: true
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
packages-dir: wheelhouse

0 comments on commit e266ae5

Please sign in to comment.