Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dciborow authored Apr 20, 2023
1 parent 1f9dc24 commit d2d8536
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
required: false
TEST_PYPI_PASSWORD:
required: false
inputs:
workdir:
type: string
default: src

jobs:
publish:
Expand All @@ -22,6 +26,7 @@ jobs:
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
pypi_repo: testpypi
version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }}
workdir: ${{ inputs.workdir }}

- name: Publish RC to PyPi
uses: dciborow/pyaction@0.3.15
Expand All @@ -30,10 +35,12 @@ jobs:
pypi_publish: true
pypi_password: ${{ secrets.PYPI_PASSWORD }}
version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }}
workdir: ${{ inputs.workdir }}

- name: Publish Release to PyPi
uses: dciborow/pyaction@0.3.15
if: ${{ github.event_name == 'release' }}
with:
pypi_publish: true
pypi_password: ${{ secrets.PYPI_PASSWORD }}
workdir: ${{ inputs.workdir }}

0 comments on commit d2d8536

Please sign in to comment.