Skip to content

Commit

Permalink
actions: dry-run publish on push (no upload)
Browse files Browse the repository at this point in the history
  • Loading branch information
naufraghi committed Nov 6, 2021
1 parent 9405657 commit ce0af5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Upload Python Package

on:
push:
release:
types: [created]

Expand All @@ -23,6 +24,7 @@ jobs:
build-requirements: 'cython'
system-packages: 'patchelf'
- name: Publish wheels to PyPI
if: github.event_name == 'release'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down Expand Up @@ -50,6 +52,7 @@ jobs:
run: |
just script/unix/ci-dist
- name: Publish wheels to PyPI
if: github.event_name == 'release'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down Expand Up @@ -80,6 +83,7 @@ jobs:
$Env:Path = (Join-Path (Get-Location) "unzipped") + ";" + $Env:Path
just script/windows/ci-dist
- name: Publish wheels to PyPI
if: github.event_name == 'release'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit ce0af5f

Please sign in to comment.