Skip to content

Commit

Permalink
Merge pull request #26 from posit-dev/ci-pypi-deploy
Browse files Browse the repository at this point in the history
ci: deploy to pypi on release
  • Loading branch information
rich-iannone authored Nov 10, 2023
2 parents e105020 + d9d42d8 commit e238314
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 e238314

Please sign in to comment.