Skip to content

v0.4.2

v0.4.2 #8

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish_to_pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build
run: poetry build
- name: Publish
run: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD