From 675a9be1836b4d74b93e8c55c44e8253166a9019 Mon Sep 17 00:00:00 2001 From: nytpu Date: Mon, 10 May 2021 17:57:34 -0600 Subject: [PATCH] move scdoc hooks and add checksum to releases --- .goreleaser.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 25249d3..2ea42b8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,7 @@ +before: + hooks: + - scdoc < doc/comitium.1.scd > dist/comitum.1 + - echo "Don't forget to move dist/comitium.1 to the release directory" builds: - env: - CGO_ENABLED=0 @@ -39,10 +43,6 @@ builds: ldflags: - -s -w -X golang.nytpu.com/comitium/core.Version={{.Version}} -X golang.nytpu.com/comitium/core.Commit={{.Commit}} - hooks: - post: - - scdoc < doc/comitium.1.scd > dist/comitum.1 - archives: - format: binary replacements: @@ -50,9 +50,14 @@ archives: 386: 32-bit amd64: 64-bit +signs: + - artifacts: checksum + publishers: - name: nytpu.com cmd: mv {{ abs .ArtifactPath }} /home/alex/projects/gemini.nytpu.com/releases/comitium/{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }} + checksum: true + signature: true release: github: