Bump version number to 2.2.0 #3
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
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
python-version: "3.9" | |
poetry-version: "1.8.4" | |
jobs: | |
pypi-publish: | |
name: Publish release to PyPI | |
runs-on: ubuntu-24.04 | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry==${{ env.poetry-version }} | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.python-version }} | |
- name: Build release with Poetry | |
run: poetry build | |
- name: Check that tag version and Poetry version match | |
run: '[[ "v$(poetry version --short)" == "${{ github.ref_name }}" ]]' | |
- name: Upload distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |