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 +