Skip to content

fix(session): preserve routing state on listing failure (thanks @NatB… #149

fix(session): preserve routing state on listing failure (thanks @NatB…

fix(session): preserve routing state on listing failure (thanks @NatB… #149

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
update-homebrew:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Generate formula
run: uv run scripts/generate_homebrew_formula.py "${{ steps.version.outputs.VERSION }}" > ccgram.rb
- name: Push to homebrew-tap
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
run: |
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/alexei-led/homebrew-tap.git" tap
cp ccgram.rb tap/Formula/ccgram.rb
cd tap
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add Formula/ccgram.rb
git commit -m "ccgram ${{ steps.version.outputs.VERSION }}"
git push
github-release:
needs:
- publish
- update-homebrew
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate release notes
id: cliff
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --latest --strip header
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ steps.cliff.outputs.content }}