File tree Expand file tree Collapse file tree 2 files changed +79
-0
lines changed
Expand file tree Collapse file tree 2 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' Compile binary'
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ name : ' Deployment with ssh'
9+ runs-on : windows-2019
10+
11+ # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
12+ defaults :
13+ run :
14+ shell : bash
15+ working-directory : .
16+
17+ steps :
18+ # Checkout the repository to the GitHub Actions runner
19+ - name : Checkout
20+ uses : actions/checkout@v2
21+
22+ - name : Compile go
23+ env :
24+ GOROOT_1_14_X64 : 1
25+ GOEXE : .exe
26+ run : make
27+
28+ - name : Save compiled file
29+ uses : actions/upload-artifact@v2
30+ with :
31+ name : gui
32+ path : gui.exe
Original file line number Diff line number Diff line change 1+ name : Releases
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+
10+ build :
11+ runs-on : windows-2019
12+
13+ defaults :
14+ run :
15+ shell : bash
16+ working-directory : .
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v2
21+
22+ - name : Compile go
23+ env :
24+ GOROOT_1_14_X64 : 1
25+ GOEXE : .exe
26+ run : make
27+
28+ - name : Save compiled file
29+ uses : actions/upload-artifact@v2
30+ with :
31+ name : gui
32+ path : gui.exe
33+
34+ release :
35+ runs-on : ubuntu-latest
36+ needs : build
37+ steps :
38+ - name : Download result from build
39+ uses : actions/download-artifact@v2
40+ with :
41+ name : gui
42+
43+ - uses : ncipollo/release-action@v1
44+ with :
45+ artifacts : " gui,gui.exe"
46+ body : " LoRa Simulator release"
47+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments