Skip to content

2.0.0

2.0.0 #26

Workflow file for this run

name: publish
on:
release:
types:
- published
jobs:
publish-package:
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install-dependencies
run: |
python -m pip install --upgrade pip
pip install hatch poetry
pip install ".[tests]"
- name: build-package
run: poetry build
- name: publish-package
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}