Skip to content

Commit

Permalink
CI: Build and upload a PyPI package upon tagging
Browse files Browse the repository at this point in the history
Change-Id: Idcd84a9f8e03ffc4ea27b37add8e5e59d1da7509
  • Loading branch information
jktjkt committed Jun 9, 2021
1 parent 2c3b0d8 commit 72f300a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ jobs:
- tox_env: docs
dnf_install: graphviz

pypi:
needs: build
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
name: PyPI packaging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.9'
- uses: casperdcl/deploy-pypi@bb869aafd89f657ceaafe9561d3b5584766c0f95
with:
password: ${{ secrets.PYPI_API_TOKEN }}
pip: wheel -w dist/ --no-deps .
upload: true

docker:
needs: build
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
Expand Down

0 comments on commit 72f300a

Please sign in to comment.