Skip to content

v0.1.0-alpha.9

v0.1.0-alpha.9 #19

Workflow file for this run

# This workflow will upload a Python Package using poetry when a release is created
name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Build package
run: |
poetry version $(git describe --tags --abbrev=0 --match "v*")
poetry build
- name: Publish package
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi "$PYPI_API_TOKEN"
poetry publish