File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Golang
19+ uses : actions/setup-go@v3
20+ with :
21+ go-version : 1.19.1
22+ - name : Build
23+ run : make
24+ - name : Set current date as env variable
25+ run : echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
26+ - name : Upload Release
27+ uses : softprops/action-gh-release@v1
28+ with :
29+ tag_name : nightly-tag-${{ env.date }}
30+ name : release-${{ env.date }}
31+ files : bin/*
32+ draft : false
33+
Original file line number Diff line number Diff line change 1+ BINARY_NAME =bin/smithy
2+
3+ build :
4+ GOARCH=arm64 GOOS=darwin go build -ldflags=" -s -w" -o ${BINARY_NAME} -darwin main.go
5+ GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o ${BINARY_NAME} -linux main.go
6+ GOARCH=amd64 GOOS=windows go build -ldflags=" -s -w" -o ${BINARY_NAME} -amd64.exe main.go
7+
8+ clean :
9+ go clean
10+ rm ${BINARY_NAME} -darwin
11+ rm ${BINARY_NAME} -linux
12+ rm ${BINARY_NAME} -x64.exe
You can’t perform that action at this time.
0 commit comments