0.2.1 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to build and release a new version | |
name: Release to PyPI | |
on: | |
release: | |
types: [published] | |
env: | |
PYTHON_VERSION: "3.10" | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup project | |
uses: ./.github/actions/setup-project | |
- name: Run CI checks | |
run: poetry run make | |
- name: Build package | |
run: poetry build | |
- name: Publish package to PyPI | |
run: poetry publish --username=__token__ --password="${{ secrets.PYPI_TOKEN }}" |