File tree Expand file tree Collapse file tree 5 files changed +156
-0
lines changed Expand file tree Collapse file tree 5 files changed +156
-0
lines changed Original file line number Diff line number Diff line change 1+ # Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+ name-template : ' v$NEXT_PATCH_VERSION 🌈'
3+ tag-template : ' v$NEXT_PATCH_VERSION'
4+ version-template : $MAJOR.$MINOR.$PATCH
5+ # Emoji reference: https://gitmoji.carloscuesta.me/
6+ categories :
7+ - title : ' 🚀 Features'
8+ labels :
9+ - ' feature'
10+ - ' enhancement'
11+ - ' kind/feature'
12+ - title : ' 🐛 Bug Fixes'
13+ labels :
14+ - ' fix'
15+ - ' bugfix'
16+ - ' bug'
17+ - ' regression'
18+ - ' kind/bug'
19+ - title : 📝 Documentation updates
20+ labels :
21+ - documentation
22+ - ' kind/doc'
23+ - title : 👻 Maintenance
24+ labels :
25+ - chore
26+ - dependencies
27+ - ' kind/chore'
28+ - ' kind/dep'
29+ - title : 🚦 Tests
30+ labels :
31+ - test
32+ - tests
33+ exclude-labels :
34+ - reverted
35+ - no-changelog
36+ - skip-changelog
37+ - invalid
38+ change-template : ' * $TITLE (#$NUMBER) @$AUTHOR'
39+ template : |
40+ ## What’s Changed
41+
42+ $CHANGES
Original file line number Diff line number Diff line change 1+ name : Pull Request Build
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ name : BuildOnLinux
11+ runs-on : ubuntu-20.04
12+ steps :
13+ - name : Set up Go 1.16
14+ uses : actions/setup-go@v2.1.4
15+ with :
16+ go-version : 1.16
17+ id : go
18+ - name : Check out code into the Go module directory
19+ uses : actions/checkout@v2.3.5
20+ - name : Build
21+ run : |
22+ sudo apt-get update -y
23+ sudo apt install libasound2-dev -y
24+ go build -o bin/goplay .
25+
26+ build-darwin :
27+ name : BuildOnDarwin
28+ runs-on : macos-10.15
29+ steps :
30+ - name : Set up Go 1.16
31+ uses : actions/setup-go@v2.1.4
32+ with :
33+ go-version : 1.16
34+ id : go
35+ - name : Check out code into the Go module directory
36+ uses : actions/checkout@v2.3.5
37+ - name : Build
38+ run : |
39+ go build -o bin/goplay .
40+
41+ build-win :
42+ name : BuildOnWindows
43+ runs-on : windows-2019
44+ steps :
45+ - name : Set up Go 1.16
46+ uses : actions/setup-go@v2.1.4
47+ with :
48+ go-version : 1.16
49+ id : go
50+ - name : Check out code into the Go module directory
51+ uses : actions/checkout@v2.3.5
52+ - name : Build
53+ run : |
54+ go build -o bin/goplay .
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ UpdateReleaseDraft :
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - uses : release-drafter/release-drafter@v5
13+ env :
14+ GITHUB_TOKEN : ${{ secrets.GH_PUBLISH_SECRETS }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ BuildOnLinux :
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2.3.5
14+ - name : Unshallow
15+ run : git fetch --prune --unshallow
16+ - name : Set up Go
17+ uses : actions/setup-go@v2.1.4
18+ with :
19+ go-version : 1.16.x
20+ - name : Build
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GH_PUBLISH_SECRETS }}
23+ run : |
24+ sudo apt-get update -y
25+ sudo apt install libasound2-dev -y
26+ GOENABLE=0 go build -o bin/goplay .
27+ cd bin && tar czvf goplay-linux-amd64.tar.gz goplay
28+ gh release upload ${{ github.ref_name }} goplay-linux-amd64.tar.gz
29+ BuildOnDarwin :
30+ runs-on : macos-10.15
31+ steps :
32+ - name : Set up Go 1.16
33+ uses : actions/setup-go@v2.1.4
34+ with :
35+ go-version : 1.16
36+ id : go
37+ - name : Check out code into the Go module directory
38+ uses : actions/checkout@v2.3.5
39+ - name : Build
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GH_PUBLISH_SECRETS }}
42+ run : |
43+ GOENABLE=0 go build -o bin/goplay .
44+ cd bin && tar czvf goplay-darwin-amd64.tar.gz goplay
45+ gh release upload ${{ github.ref_name }} goplay-darwin-amd64.tar.gz
Original file line number Diff line number Diff line change 1515# Dependency directories (remove the comment below to include it)
1616# vendor/
1717goplay
18+ bin /
You can’t perform that action at this time.
0 commit comments