Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit d2d8536

Browse files
authored
Update publish.yml
1 parent 1f9dc24 commit d2d8536

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
required: false
77
TEST_PYPI_PASSWORD:
88
required: false
9+
inputs:
10+
workdir:
11+
type: string
12+
default: src
913

1014
jobs:
1115
publish:
@@ -22,6 +26,7 @@ jobs:
2226
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
2327
pypi_repo: testpypi
2428
version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }}
29+
workdir: ${{ inputs.workdir }}
2530

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

3440
- name: Publish Release to PyPi
3541
uses: dciborow/pyaction@0.3.15
3642
if: ${{ github.event_name == 'release' }}
3743
with:
3844
pypi_publish: true
3945
pypi_password: ${{ secrets.PYPI_PASSWORD }}
46+
workdir: ${{ inputs.workdir }}

0 commit comments

Comments
 (0)