From c48459316b6fb1e83b8863884077881c130cd625 Mon Sep 17 00:00:00 2001 From: Giulliano Macedo <4284724+GillMacedo@users.noreply.github.com> Date: Sun, 1 Nov 2026 13:46:09 -0300 Subject: [PATCH] Create a GitHub Release for each version tag --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ CONTRIBUTING.md | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3831528 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: ["v*"] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Create the GitHub Release from the changelog + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ github.ref_name }} + run: | + version="${TAG#v}" + awk -v heading="## [$version]" 'index($0, heading) == 1 { found = 1; next } /^## \[/ { found = 0 } found' CHANGELOG.md > notes.md + if gh release view "$TAG" > /dev/null 2>&1; then + echo "$TAG already has a release" + else + gh release create "$TAG" --title "$TAG" --notes-file notes.md --verify-tag + fi diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2314024..8605039 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,6 +14,7 @@ You need Python 3.10 or newer. `make lint` also needs Claude Code. The dev conta - Keep each one to a single change, with tests. - For new behavior, link the Claude Code doc it follows. - Update `CHANGELOG.md`, `ROADMAP.md` and docs when relevant. +- Releases are automatic: a merge that changes what users install becomes a new version once its `CHANGELOG.md` lines are in. Docs and CI changes wait for the next one. ## Working with AI agents Agents are welcome. `CLAUDE.md` and `AGENTS.md` have the project's instructions, and `.claude/commands/` has common tasks. Say in your PR that an agent helped, and review the result yourself before submitting. You're responsible for what you submit.