Skip to content

Commit

Permalink
ci: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Jul 8, 2023
1 parent 0e13a4a commit 349a4dd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
@@ -0,0 +1,33 @@
name: Publish package

on:
release:
types: ["created"]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Setup Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.5.1

- name: Install plugin
run: poetry self add "poetry-dynamic-versioning[plugin]"

- name: Set PyPI token
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: poetry config pypi-token.pypi $PYPI_TOKEN

- name: Build and publish
run: poetry publish --build

0 comments on commit 349a4dd

Please sign in to comment.