Skip to content

Commit

Permalink
ci: deploy to pypi on release
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Nov 9, 2023
1 parent ea3c63a commit d9d42d8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,24 @@ jobs:
- name: pytest unit tests
run: |
make test
release-pypi:
name: "Release to pypi"
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: "Build Package"
run: |
python -m pip install build wheel
python -m build --sdist --wheel
- name: "Deploy to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit d9d42d8

Please sign in to comment.