| 1 | name: release |
| 2 | |
| 3 | on: push |
| 4 | permissions: |
| 5 | contents: write |
| 6 | |
| 7 | jobs: |
| 8 | release: |
| 9 | runs-on: ubuntu-latest |
| 10 | if: startsWith(github.ref, 'refs/tags/') |
| 11 | steps: |
| 12 | - name: Checkout |
| 13 | uses: actions/checkout@v4 |
| 14 | with: |
| 15 | fetch-depth: 0 |
| 16 | fetch-tags: true |
| 17 | - name: Setup Python |
| 18 | uses: actions/setup-python@v6 |
| 19 | with: |
| 20 | python-version: "3.13" |
| 21 | - name: Setup uv |
| 22 | uses: astral-sh/setup-uv@v5 |
| 23 | - name: Prepare release notes |
| 24 | run: uv tool run git-changelog --release-notes > release-notes.md |
| 25 | - name: Create release |
| 26 | uses: softprops/action-gh-release@v2 |
| 27 | with: |
| 28 | body_path: release-notes.md |
| 29 |