File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - release/*
77
8-
98jobs :
109 build :
1110 name : Build distribution 📦
@@ -33,19 +32,19 @@ jobs:
3332 name : python-package-distributions
3433 path : dist/
3534
36- publish-to-testpypi :
37- name : Publish Python 🐍 distribution 📦 to PyPI
35+ publish-to-pypi :
36+ name : >-
37+ Publish Python 🐍 distribution 📦 to PyPI
38+ if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3839 needs :
3940 - build
4041 runs-on : ubuntu-latest
41-
4242 environment :
4343 name : pypi
44- url : https://pypi.org/p/PyEPR-ESR
45-
44+ url : https://pypi.org/p/PyEPR-ESR # Replace <package-name> with your PyPI project name
4645 permissions :
4746 id-token : write # IMPORTANT: mandatory for trusted publishing
48-
47+
4948 steps :
5049 - name : Download all the dists
5150 uses : actions/download-artifact@v4
5655 uses : pypa/gh-action-pypi-publish@release/v1
5756 with :
5857 verbose : true
59- repository-url : https://pypi.org/legacy/
58+
You can’t perform that action at this time.
0 commit comments