From 2591a25d1aa5f2eed5bf3787b4e5004eb566a1af 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 sight's CD in line with the other GrayCodeAI repos that already ship a release workflow (hawk-sdk-go, tok, etc.). sight 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..9070959 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +# Release workflow for sight (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/sight@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 }}