File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed
Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 11name : actions
22
3- on : [ push, pull_request ]
3+ on :
4+ push :
5+ branchs :
6+ - ' master'
7+ tags :
8+ pull_request :
49
510jobs :
611 lint :
3035 run : curl -XPOST --data 'repo=github.com/darthPestilane/easytcp' 'https://goreportcard.com/checks'
3136
3237 test :
38+ needs : lint
3339 env :
3440 CGO_ENABLED : 0
3541 strategy :
4652 with :
4753 go-version : ${{ matrix.go-version}}
4854
49- - name : Build
50- run : make build-all
51-
5255 - name : Test
5356 run : make test-v
5457
5760 with :
5861 token : ${{ secrets.CODECOV_TOKEN }}
5962 files : .testCoverage.txt
63+
64+ release :
65+ needs : test
66+ runs-on : ubuntu-latest
67+ steps :
68+ - name : Checkout Code
69+ uses : actions/checkout@v2
70+
71+ - name : Run GoReleaser
72+ uses : goreleaser/goreleaser-action@v2
73+ if : success() && startsWith(github.ref, 'refs/tags/')
74+ with :
75+ version : latest
76+ args : release --rm-dist --skip-announce --timeout=2m
77+ env :
78+ GITHUB_TOKEN : ${{ secrets.GORELEASER_TOKEN }}
Original file line number Diff line number Diff line change 11.idea /
22.vscode /
33vender /
4+ dist /
45
56* .exe
67* .exe~
Original file line number Diff line number Diff line change 1+ # This is an example .goreleaser.yml file with some sane defaults.
2+ # Make sure to check the documentation at http://goreleaser.com
3+ builds :
4+ - skip : true
5+
6+ release :
7+ draft : true
Original file line number Diff line number Diff line change 5757 go generate
5858endif
5959
60+ .PHONY : release-local
61+ release-local :
62+ goreleaser release --rm-dist --skip-announce --skip-publish --snapshot
63+
6064.PHONY : clean
6165clean :
6266 go clean -r -x -cache -i
You can’t perform that action at this time.
0 commit comments