Skip to content

Commit

Permalink
Merge pull request #146 from graingert/patch-1
Browse files Browse the repository at this point in the history
publish package on a successfull tag build
  • Loading branch information
chrisdev authored Oct 27, 2021
2 parents 97e3283 + e2cd43a commit ee84f42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,20 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: build package
run: |
python -m pip install -U build
python -m build
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: note that all tests succeeded
run: echo "🎉"

0 comments on commit ee84f42

Please sign in to comment.