We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b35a744 commit 9158d1bCopy full SHA for 9158d1b
.github/workflows/python-publish.yml
@@ -11,13 +11,16 @@ name: Publish Python 🐍 distributions 📦 to PyPI
11
on:
12
release:
13
types: [published]
14
+ pull_request:
15
16
permissions:
17
contents: read
18
19
jobs:
20
deploy:
-
21
+ environment:
22
+ name: testpypi
23
+ url: https://testpypi.org/p/tutor-contrib-codejail
24
runs-on: ubuntu-latest
25
26
steps:
@@ -33,8 +36,9 @@ jobs:
33
36
- name: Build package
34
37
run: |
35
38
python -m build --sdist --wheel --outdir dist/ .
39
+
40
- name: Publish package
- uses: pypa/gh-action-pypi-publish@v1.10.3
41
+ uses: pypa/gh-action-pypi-publish@release/v1
42
with:
43
user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
44
+ password: ${{ secrets.TEST_PYPI }}
0 commit comments