Skip to content

Commit e14d890

Browse files
author
bitdruid
committed
Update workflow
1 parent 8589415 commit e14d890

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/pypi.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: build an publish
33
on:
44
push:
55
branches:
6-
- test
6+
- main
77
workflow_dispatch:
88

99
jobs:
@@ -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

0 commit comments

Comments
 (0)