File tree Expand file tree Collapse file tree 3 files changed +77
-22
lines changed
Expand file tree Collapse file tree 3 files changed +77
-22
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a golang project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+ name : Go
5+
6+ on :
7+ push :
8+ branches : [ "master" ]
9+ pull_request :
10+ branches : [ "master" ]
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Set up Go
19+ uses : actions/setup-go@v4
20+ with :
21+ go-version : ' 1.23.3'
22+
23+ - name : Test
24+ run : go test -v ./...
25+
26+ - name : Build
27+ run : go build -v ./...
28+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # This workflow will build a golang project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+ name : Go
5+
6+ on :
7+ push :
8+ tags : [ "v*.*.*" ]
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v4
18+ with :
19+ go-version : ' 1.23.3'
20+
21+ - name : Test
22+ run : go test -v ./...
23+
24+ - name : Build
25+ run : go build -v ./...
26+
27+ - name : save binary
28+ uses : actions/upload-artifact@v4.6.1
29+ with :
30+ name : nflow-generator
31+ path : ./nflow-generator
32+ release :
33+ runs-on : ubuntu-latest
34+ needs : build
35+ steps :
36+ - name : setup go
37+ uses : actions/setup-go@v3
38+ with :
39+ go-version : ' 1.23.2'
40+ - name : get binaries from previous job
41+ uses : actions/download-artifact@4.1.9
42+ - name : display downloaded files
43+ run : ls -R
44+ - name : release with binaries
45+ uses : softprops/action-gh-release@v1
46+ with :
47+ generate_release_notes : true
48+ prerelease : ${{ endsWith(github.ref, '-alpha') || endsWith(github.ref, '-beta') }}
49+ files : " binaries/nflow-generator"
You can’t perform that action at this time.
0 commit comments