From 8fa2b1f9685166e7461e7c4b5bd251cd00f6ddf1 Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Sat, 20 Jun 2026 17:58:58 +0530 Subject: [PATCH] ci: add release workflow for tagged releases Publishes a GitHub Release with auto-generated notes when a v* tag is pushed, bringing trace's CD in line with the other GrayCodeAI repos that already ship a release workflow (hawk-sdk-go, tok, etc.). trace is a Go library, so this uses the lightweight action-gh-release model (no binary builds). --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..2aa16a0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +# Release workflow for trace (Go library — no binaries). +# Triggered when a v* tag is pushed; publishes a GitHub Release with +# auto-generated notes. Consumers depend on the tag via +# `go get github.com/GrayCodeAI/trace@vX.Y.Z`. + +name: release + +on: + push: + tags: ["v*"] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + + - name: Create GitHub Release + uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2 + with: + generate_release_notes: true + draft: false + prerelease: auto + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}