Skip to content

Commit ee84f42

Browse files
authored
Merge pull request #146 from graingert/patch-1
publish package on a successfull tag build
2 parents 97e3283 + e2cd43a commit ee84f42

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: .github/workflows/test.yml

+15
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,20 @@ jobs:
4949
runs-on: ubuntu-latest
5050
needs: [test]
5151
steps:
52+
- uses: actions/checkout@v2
53+
- name: Set up Python
54+
uses: actions/setup-python@v2
55+
with:
56+
python-version: "3.10"
57+
- name: build package
58+
run: |
59+
python -m pip install -U build
60+
python -m build
61+
- name: Publish package
62+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
63+
uses: pypa/gh-action-pypi-publish@release/v1
64+
with:
65+
user: __token__
66+
password: ${{ secrets.PYPI_API_TOKEN }}
5267
- name: note that all tests succeeded
5368
run: echo "🎉"

0 commit comments

Comments
 (0)