File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 9
9
build-n-publish :
10
10
name : Build and publish Python distributions to PyPI and TestPyPI
11
11
runs-on : ubuntu-latest
12
+ environment :
13
+ name : pypi
14
+ url : https://pypi.org/p/simuk
15
+ permissions :
16
+ id-token : write
12
17
steps :
13
18
- uses : actions/checkout@v4
14
19
- name : Set up Python 3.11
30
35
--wheel
31
36
--outdir dist/
32
37
33
- - name : Publish distribution to Test PyPI
38
+ - name : Publish package distributions to PyPI
34
39
uses : pypa/gh-action-pypi-publish@release/v1
35
- with :
36
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
37
- repository_url : https://test.pypi.org/legacy/
38
-
39
- - name : Publish distribution to PyPI
40
- if : startsWith(github.ref, 'refs/tags')
41
- uses : pypa/gh-action-pypi-publish@release/v1
42
- with :
43
- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments