Skip to content

Commit

Permalink
added publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomusmeci committed May 17, 2023
1 parent c9dcdac commit 290dace
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish to PyPI

on:
release:
types: [ published ]
branches: [ main ]
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.x"

- name: Install poetry and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Configure poetry
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 290dace

Please sign in to comment.