Skip to content

Commit

Permalink
Add action for publishing releases
Browse files Browse the repository at this point in the history
When a release is published in GitHub Releases, this triggers a GitHub
Action to build and upload the package to PyPI.
  • Loading branch information
jodal committed Mar 7, 2021
1 parent 1d42e1f commit 0e5209b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: python -m pip install poetry==1.1.5 tox==3.23.09
- run: tox --skip-missing-interpreters true
- run: poetry build
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}

0 comments on commit 0e5209b

Please sign in to comment.