Skip to content

Commit

Permalink
publish to pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorossi5 committed Dec 14, 2023
1 parent ef72aea commit 13774dd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build wheels and deploy

on:
workflow_dispatch:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.1"
- name: Install dependencies
run: poetry install --with dev
- name: Package the distribution
run: poetry build
- name: Publish distribution to PyPI
if: ${{ github.event_name == 'release' && github.event.action == 'published'}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 13774dd

Please sign in to comment.