Skip to content

Commit ae14c86

Browse files
committed
ci: Restore steps performed only for releases
Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 0736863 commit ae14c86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- id: musllinux_x86_64
3939
run: echo "wheel_types=musllinux_x86_64" >> $GITHUB_OUTPUT
4040
- id: manylinux_aarch64
41+
if: github.event_name == 'release' && github.event.action == 'published'
4142
run: echo "wheel_types=manylinux_aarch64" >> $GITHUB_OUTPUT
4243
outputs:
4344
wheel_types: ${{ toJSON(steps.*.outputs.wheel_types) }}
@@ -295,6 +296,7 @@ jobs:
295296
upload_pypi:
296297
needs: [test_wheels]
297298
runs-on: ubuntu-latest
299+
if: github.event_name == 'release' && github.event.action == 'published'
298300
steps:
299301
- uses: actions/download-artifact@v4
300302
with:
@@ -304,4 +306,8 @@ jobs:
304306
mv dist/sdist/*.tar.gz dist/
305307
mv dist/*-wheels/*.whl dist/
306308
rmdir dist/{sdist,*-wheels}
307-
- run: ls -R dist
309+
ls -R dist
310+
- uses: pypa/gh-action-pypi-publish@release/v1
311+
with:
312+
skip_existing: true
313+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)