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
3
3
on :
4
4
push :
5
5
branches :
6
- - test
6
+ - main
7
7
workflow_dispatch :
8
8
9
9
jobs :
@@ -23,14 +23,16 @@ jobs:
23
23
- name : Build a binary wheel and a source tarball
24
24
run : |
25
25
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
34
27
# uses: pypa/gh-action-pypi-publish@release/v1
35
28
# 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