Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Jul 4, 2023
1 parent ee5398e commit 306a304
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: "1.5.1"
virtualenvs-in-project: true
- name: Install dynamic versioning plugin for Poetry
run: poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build and publish to PyPI
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}

0 comments on commit 306a304

Please sign in to comment.