Skip to content

Commit ac83aa0

Browse files
committed
Merge branch 'pypi_Action' of github.com:Shimwell/plotter into pypi_Action
2 parents 5748c4b + ce4712d commit ac83aa0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ name: Upload Python Package
77

88
on:
99
push:
10-
branches:
11-
- master
10+
tags: 'v*.*.*'
1211

1312
jobs:
1413
deploy:
@@ -27,8 +26,8 @@ jobs:
2726
pip install setuptools wheel twine
2827
- name: Build and publish
2928
env:
30-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
31-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3231
run: |
3332
python setup.py sdist bdist_wheel
3433
twine upload dist/*

0 commit comments

Comments
 (0)