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: