Skip to content

Bump version to 0.1.3 and update dependencies #16

Bump version to 0.1.3 and update dependencies

Bump version to 0.1.3 and update dependencies #16

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
publish:
name: Build and Publish
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Verify Version Match
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
PACKAGE_VERSION=$(grep -m 1 'version =' pyproject.toml | tr -d '"' | awk '{print $3}')
echo "Tag Version: $TAG_VERSION"
echo "Package Version: $PACKAGE_VERSION"
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
echo "ERROR: Tag (v$TAG_VERSION) != pyproject.toml ($PACKAGE_VERSION)"
exit 1
fi
- name: Install build
run: python -m pip install --upgrade build
- name: Build package
run: python -m build
- name: Publish to PyPI (Trusted Publishing)
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true