Bump version to v0.2.1 #30
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: PyPI Publish | |
on: | |
release: | |
types: [created] | |
push: | |
tags: | |
- 'v*.*.*' | |
- 'v*.*.*.*' | |
jobs: | |
publish: | |
name: Build and Publish to PyPI | |
environment: publish_pypi | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
ignore-nothing-to-cache: true | |
cache-dependency-glob: uv.lock | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Build package | |
run: uv build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
# for test.pypi | |
# with: | |
# repository-url: https://test.pypi.org/legacy/ |