Skip to content

fix: security hardening + README improvements #5

fix: security hardening + README improvements

fix: security hardening + README improvements #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- goos: darwin
goarch: arm64
suffix: darwin-arm64
- goos: darwin
goarch: amd64
suffix: darwin-amd64
- goos: linux
goarch: amd64
suffix: linux-amd64
- goos: linux
goarch: arm64
suffix: linux-arm64
- goos: windows
goarch: amd64
suffix: windows-amd64.exe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags "-s -w -X main.version=${{ github.ref_name }}" \
-o hpphub-${{ matrix.suffix }} ./cmd/hpphub/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hpphub-${{ matrix.suffix }}
path: hpphub-${{ matrix.suffix }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: dist/hpphub-*
generate_release_notes: true