Skip to content

Commit

Permalink
github actions: publish to pypi automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Jun 16, 2023
1 parent 5dfd9a5 commit a989df1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,16 @@ jobs:
run: |
coverage run -m tests.manage test
coverage report
publish:
needs: [lint, test]
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: build
run: python3 setup.py bdist_wheel sdist
- name: publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a989df1

Please sign in to comment.