Skip to content

Commit

Permalink
ci: update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jun 17, 2021
1 parent 9ac1dfe commit 938925a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
test:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- "*"
branches:
- test-ci

jobs:
ci-ci-ci:
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,6 +20,8 @@ builds:
- linux
- darwin
- windows
hooks:
post: ls dist/ && upx dist/*
archives:
- format: binary
changelog:
Expand Down

0 comments on commit 938925a

Please sign in to comment.