Skip to content

Commit

Permalink
add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
livioribeiro committed Nov 12, 2023
1 parent 76700d9 commit 9324154
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish

on:
push:
tags:
- "main/v[0-9]+.[0-9]+.[0-9]+"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- run: pip install pipx
- run: pipx install poetry
- run: poetry build
- run: poetry config pypi-token.pypi "$PYPI_TOKEN"
env:
PYPI_TOKEN: "${secrets.PYPI_TOKEN}"
- run: poetry publish

0 comments on commit 9324154

Please sign in to comment.