Skip to content

chore: make release build script executable #2

chore: make release build script executable

chore: make release build script executable #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Build release artifacts
run: scripts/build-release.sh
- name: Upload artifacts to GitHub Release
env:
GH_TOKEN: ${{ github.token }}
TAG_NAME: ${{ github.ref_name }}
run: |
set -euo pipefail
notes_file="docs/release/${TAG_NAME}.md"
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
gh release upload "$TAG_NAME" dist/* --clobber
elif [ -f "$notes_file" ]; then
gh release create "$TAG_NAME" dist/* --title "$TAG_NAME" --notes-file "$notes_file"
else
gh release create "$TAG_NAME" dist/* --title "$TAG_NAME" --generate-notes
fi