Skip to content

bump: version 2.0.0 → 3.0.0 #11

bump: version 2.0.0 → 3.0.0

bump: version 2.0.0 → 3.0.0 #11

Workflow file for this run

name: main branch updated
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.PERSONAL_ACCESS_TOKEN }}
persist-credentials: false
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish-github-page:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "latest"
- name: Install dependencies
run: |
uv --version
uv tool install invoke
uv sync --group dev --group doc
- name: Build docs
run: |
inv doc.build
- name: Push doc to Github Page
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_branch: gh-pages
publish_dir: ./site