Fix duplicate hooks.json error — remove explicit hooks field from man… #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Build binaries | |
| run: | | |
| platforms=( | |
| "darwin/arm64" | |
| "darwin/amd64" | |
| "linux/amd64" | |
| "linux/arm64" | |
| ) | |
| mkdir -p dist | |
| for platform in "${platforms[@]}"; do | |
| GOOS="${platform%/*}" | |
| GOARCH="${platform#*/}" | |
| output="dist/reflex-${GOOS}-${GOARCH}" | |
| echo "Building ${output}..." | |
| GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o "$output" . | |
| done | |
| - name: Generate checksums | |
| run: | | |
| cd dist | |
| sha256sum reflex-* > checksums.txt | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| dist/reflex-* | |
| dist/checksums.txt |