From 938925a4975efdebf573237ad7356f04aee72aed Mon Sep 17 00:00:00 2001 From: ehco1996 Date: Fri, 18 Jun 2021 07:26:20 +0800 Subject: [PATCH] ci: update goreleaser --- .github/workflows/normal.yml | 2 +- .github/workflows/release.yml | 2 ++ .goreleaser.yml | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/normal.yml b/.github/workflows/normal.yml index 4ff49c678..ad5fba721 100644 --- a/.github/workflows/normal.yml +++ b/.github/workflows/normal.yml @@ -6,7 +6,7 @@ on: - master jobs: - test: + test-and-build: runs-on: ubuntu-latest steps: - name: Set up Go 1.16 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4acc9819d..a960e0bd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: push: tags: - "*" + branches: + - test-ci jobs: ci-ci-ci: diff --git a/.goreleaser.yml b/.goreleaser.yml index 33a2b893f..8f68e56a0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,8 +2,8 @@ # Make sure to check the documentation at http://goreleaser.com before: hooks: - # you may remove this if you don't use vgo - go mod download + - sudo apt-get install -y upx builds: - id: ehco main: ./cmd/ehco/main.go @@ -20,6 +20,8 @@ builds: - linux - darwin - windows + hooks: + post: ls dist/ && upx dist/* archives: - format: binary changelog: