Skip to content

Commit e266ae5

Browse files
committed
fix(ci): pypi publish
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]>
1 parent 91850f0 commit e266ae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ jobs:
152152
153153
publish:
154154
name: Publish wheels
155-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
155+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
156156
needs: [check]
157157
runs-on: ubuntu-latest
158158

159159
steps:
160160
- uses: actions/download-artifact@v3
161161
with:
162-
name: artifacts
162+
name: wheels
163163
path: wheelhouse
164164

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

0 commit comments

Comments
 (0)