Merge pull request #12 from kiraum/kiraum/v0.0.4 #8
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: Publish to PyPI | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install UV and build tools | |
run: | | |
pip install --upgrade uv | |
uv pip install --system --break-system-packages build | |
- name: Verify CHANGELOG | |
run: | | |
if ! grep -q "## \[$(git describe --tags --abbrev=0 | sed 's/v//')\]" CHANGELOG.md; then | |
echo "CHANGELOG.md not updated for this version" | |
exit 1 | |
fi | |
- name: Build package | |
run: uv build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 |