File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed
Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : setup go
15+ uses : actions/setup-go@v5
16+ with :
17+ go-version : ' 1.21'
18+
19+ - name : deps
20+ run : go mod download
21+
22+ - name : build all
23+ run : |
24+ GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ssh-inject-linux-amd64 .
25+ GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o ssh-inject-linux-arm64 .
26+ GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ssh-inject-darwin-amd64 .
27+ GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ssh-inject-darwin-arm64 .
28+ GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ssh-inject-windows-amd64.exe .
29+ GOOS=windows GOARCH=arm64 go build -ldflags "-s -w" -o ssh-inject-windows-arm64.exe .
30+
31+ - name : create release
32+ uses : softprops/action-gh-release@v1
33+ with :
34+ name : SSH-Inject ${{ github.ref_name }}
35+ body : |
36+ ## whats new
37+
38+ - bug fixes and improvements
39+
40+ ## download
41+
42+ grab the binary for your platform:
43+
44+ | os | arch | file |
45+ |---|---|---|
46+ | linux | x64 | `ssh-inject-linux-amd64` |
47+ | linux | arm64 | `ssh-inject-linux-arm64` |
48+ | macos | intel | `ssh-inject-darwin-amd64` |
49+ | macos | apple silicon | `ssh-inject-darwin-arm64` |
50+ | windows | x64 | `ssh-inject-windows-amd64.exe` |
51+ | windows | arm64 | `ssh-inject-windows-arm64.exe` |
52+
53+ ## usage
54+
55+ ```bash
56+ chmod +x ssh-inject-linux-amd64
57+ ./ssh-inject-linux-amd64
58+ ```
59+
60+ then follow the menu
61+ files : |
62+ ssh-inject-linux-amd64
63+ ssh-inject-linux-arm64
64+ ssh-inject-darwin-amd64
65+ ssh-inject-darwin-arm64
66+ ssh-inject-windows-amd64.exe
67+ ssh-inject-windows-arm64.exe
68+ env :
69+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments