From e59fee8e60a10564f32dbf825d25a037a060f79b Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Sat, 6 Dec 2025 12:42:07 -0600 Subject: [PATCH] Add SLSA Go releaser configuration and workflow files for automated builds and releases --- .github/workflows/slsa-go-releaser.yml | 24 ++++++++++++++++ .slsa-goreleaser.yml | 38 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/slsa-go-releaser.yml create mode 100644 .slsa-goreleaser.yml diff --git a/.github/workflows/slsa-go-releaser.yml b/.github/workflows/slsa-go-releaser.yml new file mode 100644 index 0000000..f8d375a --- /dev/null +++ b/.github/workflows/slsa-go-releaser.yml @@ -0,0 +1,24 @@ +name: SLSA Go releaser + +on: + workflow_dispatch: + release: + types: [created] + +permissions: + contents: write + id-token: write + actions: read + +jobs: + build: + permissions: + id-token: write + contents: write + actions: read + uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.10.0 + with: + go-version: "1.24" + config-file: .slsa-goreleaser.yml + upload-assets: true + diff --git a/.slsa-goreleaser.yml b/.slsa-goreleaser.yml new file mode 100644 index 0000000..c5ad4cf --- /dev/null +++ b/.slsa-goreleaser.yml @@ -0,0 +1,38 @@ +version: 1 + +builds: + - id: reticulum-go + main: ./cmd/reticulum-go + binary: reticulum-go + flags: + - -trimpath + ldflags: + - -s -w + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + +archives: + - id: archives + builds: + - reticulum-go + format: tar.gz + files: + - LICENSE + - README.md + +checksums: + name_template: "{{ .ProjectName }}_checksums.txt" + +release: + github: + owner: Sudo-Ivan + name: reticulum-go + +snapshot: + name_template: snapshot +