File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 1- name : Publish to TestPyPI
1+ name : Publish to TestPyPI and PyPI
22
33on :
44 push :
55 tags :
66 - ' v0.[0-9]+.dev[0-9]+'
7+ - ' v0.[0-9]+'
78
89permissions : {}
910
5354 uses : pypa/gh-action-pypi-publish@release/v1
5455 with :
5556 repository-url : https://test.pypi.org/legacy/
57+
58+ publish-to-pypi :
59+ name : Publish to PyPI
60+ if : |
61+ !contains(github.ref, '.dev')
62+ runs-on : ubuntu-latest
63+ needs :
64+ - publish-to-testpypi
65+ environment :
66+ name : pypi
67+ url : https://pypi.org/p/kaitaistruct
68+ permissions :
69+ id-token : write # IMPORTANT: mandatory for trusted publishing
70+ steps :
71+ - name : Download all the dists
72+ uses : actions/download-artifact@v5
73+ with :
74+ name : python-package-distributions
75+ path : dist/
76+ - name : Publish distribution to TestPyPI
77+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments