Skip to content

PyPI publish

PyPI publish #12

Workflow file for this run

---
name: PyPI publish
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install poetry
run: pip install poetry
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
- name: Build package
run: poetry build
- name: Publish package
run: poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}