Skip to content

Commit 9158d1b

Browse files
committed
ci: fix pypi publishing
1 parent b35a744 commit 9158d1b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ name: Publish Python 🐍 distributions 📦 to PyPI
1111
on:
1212
release:
1313
types: [published]
14+
pull_request:
1415

1516
permissions:
1617
contents: read
1718

1819
jobs:
1920
deploy:
20-
21+
environment:
22+
name: testpypi
23+
url: https://testpypi.org/p/tutor-contrib-codejail
2124
runs-on: ubuntu-latest
2225

2326
steps:
@@ -33,8 +36,9 @@ jobs:
3336
- name: Build package
3437
run: |
3538
python -m build --sdist --wheel --outdir dist/ .
39+
3640
- name: Publish package
37-
uses: pypa/gh-action-pypi-publish@v1.10.3
41+
uses: pypa/gh-action-pypi-publish@release/v1
3842
with:
3943
user: __token__
40-
password: ${{ secrets.PYPI_API_TOKEN }}
44+
password: ${{ secrets.TEST_PYPI }}

0 commit comments

Comments
 (0)