Skip to content

Commit

Permalink
Publish to Pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed Jun 7, 2024
1 parent 4da0412 commit 0561c2c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types:
- published

jobs:
pypi-publish:
name: Upload release to Pypi
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.2
- name: poetry build
run: poetry build
- name: Publish package distributions to Pypi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0561c2c

Please sign in to comment.