chore: bump version to 1.0.5 #17
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* | |
jobs: | |
pypi-publish: | |
name: Release package to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Check version | |
run: | | |
export PACKAGE_VERSION="$(poetry version --short)" | |
export TAG_VERSION="${GITHUB_REF_NAME:1}" | |
echo "package version: $PACKAGE_VERSION" | |
echo "github ref: $TAG_VERSION" | |
[[ "x$PACKAGE_VERSION" == "x$TAG_VERSION" ]] | |
- run: poetry build | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |