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 }}