File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: build an publish
33on :
44 push :
55 branches :
6- - test
6+ - main
77 workflow_dispatch :
88
99jobs :
@@ -23,14 +23,16 @@ jobs:
2323 - name : Build a binary wheel and a source tarball
2424 run : |
2525 python3 -m build
26- - name : Publish distribution 📦 to Test PyPI
27- uses : pypa/gh-action-pypi-publish@release/v1
28- with :
29- password : ${{ secrets.testpypi }}
30- repository_url : https://test.pypi.org/legacy/
31- skip_existing : true
32- # - name: Publish distribution 📦 to PyPI
33- # if: startsWith(github.ref, 'refs/tags')
26+ # - name: Publish to Test PyPI
3427 # uses: pypa/gh-action-pypi-publish@release/v1
3528 # with:
36- # password: ${{ secrets.PYPI_API_TOKEN }}
29+ # password: ${{ secrets.testpypi }}
30+ # repository_url: https://test.pypi.org/legacy/
31+ # skip-existing: true
32+ - name : Publish to PyPI
33+ if : startsWith(github.ref, 'refs/tags')
34+ uses : pypa/gh-action-pypi-publish@release/v1
35+ with :
36+ password : ${{ secrets.pypi_pywaybackup }}
37+ repository_url : https://upload.pypi.org/legacy/
38+ skip-existing : true
You can’t perform that action at this time.
0 commit comments