File tree Expand file tree Collapse file tree 1 file changed +36
-6
lines changed
Expand file tree Collapse file tree 1 file changed +36
-6
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,44 @@ jobs:
2020 name : ' Python Build'
2121 uses : nofusscomputing/action_python/.github/workflows/python-package.yaml@development
2222
23+ #
24+ # See: https://github.com/pypa/gh-action-pypi-publish/issues/166
25+ # See: https://github.com/pypi/warehouse/issues/11096
26+ # python-publish:
27+ # name: 'Python Build'
28+ # uses: nofusscomputing/action_python/.github/workflows/python-publish.yaml@development
29+ # if: startsWith(github.ref, 'refs/tags/')
30+ # needs:
31+ # - python-build
32+ # with:
33+ # PYTHON_PROJECT_NAME:
34+ # secrets:
35+ # password: ${{ secrets.NFC_PYPI_TOKEN }}
36+
2337
2438 python-publish :
25- name : ' Python Build'
26- uses : nofusscomputing/action_python/.github/workflows/python-publish.yaml@development
39+ name : ' Python Publish'
2740 if : startsWith(github.ref, 'refs/tags/')
41+ runs-on : ubuntu-latest
42+ environment :
43+ name : pypi
44+ url : https://pypi.org/p/pytest-simplified/
45+ permissions :
46+ id-token : write
2847 needs :
2948 - python-build
30- with :
31- PYTHON_PROJECT_NAME : pytest-simplified
32- secrets :
33- password : ${{ secrets.NFC_PYPI_TOKEN }}
49+
50+ steps :
51+
52+ - name : Download built artifact to dist/
53+ uses : actions/download-artifact@v4
54+ with :
55+ name : Packages
56+ path : dist
57+
58+
59+ - name : Publish package distributions to PyPI
60+ uses : pypa/gh-action-pypi-publish@release/v1
61+ with :
62+ PYTHON_PROJECT_NAME : pytest-simplified
63+ password : ${{ secrets.NFC_PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments