From a2a501698bc2b8df3e82ac67243a8adb19c69d61 Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Tue, 24 Aug 2021 11:54:54 -0700 Subject: [PATCH] Improve release process --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb5dc0b..9a7e75f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,7 @@ jobs: GIT_AUTHOR_EMAIL: run: | git add dist - git restore --staged dist/config.yaml + git restore --staged dist/config.yaml dist/\*.zip dist/\*.tar.gz dist/\*.txt dist/\*.txt.sig git commit -m "Add artifacts for ${GITHUB_REF#refs/tags/}" if [[ $GITHUB_REF != *-* ]]; then git push origin HEAD:trunk diff --git a/.goreleaser.yml b/.goreleaser.yml index 867c40d..f45cbe4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,6 +5,8 @@ before: builds: - env: - CGO_ENABLED=0 + ldflags: + - -s -w goos: - darwin - linux