bump: version 0.1.0 → 0.1.1 #11
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: Build and Release | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump-version: | |
if: "!startsWith(github.event.head_commit.message, 'bump:')" | |
runs-on: ubuntu-latest | |
name: Bump version and create changelog with commitizen | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Bump version and create changelog | |
uses: commitizen-tools/[email protected] | |
with: | |
github_token: ${{ secrets.PAT }} | |
publish: | |
if: "startsWith(github.event.head_commit.message, 'bump:')" | |
runs-on: ubuntu-latest | |
name: Build and Publish | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Build package | |
run: uv build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: dist/*.whl | |
- name: Release | |
uses: softprops/[email protected] | |
with: | |
files: dist/* | |
tag_name: ${{ env.REVISION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |