Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit dcae5e9

Browse files
committed
ci: always run dry-run publish
1 parent 64a441b commit dcae5e9

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/python.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ jobs:
9494
run: |
9595
poetry build
9696
97-
deploy:
98-
name: Deploy to pypi
97+
test_deploy:
98+
name: Test Deploy to PyPi
9999
runs-on: ubuntu-latest
100100
needs: [lint, test, build]
101-
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
102101

103102
steps:
104103
- uses: actions/checkout@v2
@@ -118,6 +117,25 @@ jobs:
118117
poetry config pypi-token.pypi ${{ secrets.PYPI_DEPLOY_TOKEN }}
119118
poetry publish --dry-run
120119
120+
deploy:
121+
name: Deploy to PyPi
122+
runs-on: ubuntu-latest
123+
needs: [test_deploy]
124+
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
125+
126+
steps:
127+
- uses: actions/checkout@v2
128+
- name: Set up Python 3.8
129+
uses: actions/setup-python@v2
130+
with:
131+
python-version: 3.8
132+
- name: Run image
133+
uses: abatilo/[email protected]
134+
135+
- name: Run build
136+
run: |
137+
poetry build
138+
121139
- name: Actual publish
122140
run: |
123141
poetry config pypi-token.pypi ${{ secrets.PYPI_DEPLOY_TOKEN }}

0 commit comments

Comments
 (0)