Skip to content

Pre-alpha 20

Pre-alpha 20 #20

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish
run: |
poetry version $(git describe --tags --abbrev=0 | grep -Eoe '[0-9]+.[0-9]+\.[0-9]+')
poetry build
poetry publish