+ Release Bump #3
This file contains hidden or 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: "+ Release Bump" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| arguments: | |
| description: "Optional arguments passed to `cz bump` (e.g. '--increment major --prerelease rc'). Leave empty for auto-detection from commit messages." | |
| required: false | |
| type: string | |
| default: "" | |
| jobs: | |
| bump: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0 | |
| with: | |
| app-id: ${{ secrets.RELEASE_BOT_APP_ID }} | |
| private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| fetch-depth: 0 | |
| - name: Install mise | |
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | |
| - name: Install Python, venv and dependencies | |
| run: uv sync --all-extras --frozen --link-mode=copy | |
| - name: Configure git identity | |
| run: | | |
| git config user.name "aignostics-release-bot[bot]" | |
| git config user.email "aignostics-release-bot[bot]@users.noreply.github.com" | |
| - name: Bump version | |
| env: | |
| BUMP_ARGS: ${{ inputs.arguments }} | |
| run: cz bump --no-verify --yes $BUMP_ARGS | |
| - name: Update lockfile and amend bump commit | |
| run: | | |
| uv lock | |
| git add uv.lock | |
| git commit --amend --no-edit --no-verify | |
| git tag -f "v$(cat VERSION)" | |
| - name: Push version bump and tag | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: git push origin main --tags |