File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Release version'
8+ required : true
9+ type : string
10+
11+ env :
12+ CARGO_TERM_COLOR : always
13+
14+ jobs :
15+ build-and-release :
16+ strategy :
17+ matrix :
18+ include :
19+ - os : ubuntu-latest
20+ target : x86_64-unknown-linux-gnu
21+ binary_extension : ' '
22+ - os : windows-latest
23+ target : x86_64-pc-windows-msvc
24+ binary_extension : ' .exe'
25+ - os : macos-latest-xlarge
26+ target : aarch64-apple-darwin
27+ binary_extension : ' '
28+ runs-on : ${{ matrix.os }}
29+ permissions :
30+ contents : write
31+
32+ steps :
33+ - uses : actions/checkout@v4
34+
35+ - name : Build
36+ run : cargo build --release --target ${{ matrix.target }}
37+
38+ - name : Create GitHub Release
39+ uses : softprops/action-gh-release@v1
40+ with :
41+ tag_name : v${{ github.event.inputs.version }}
42+ name : Release v${{ github.event.inputs.version }}
43+ draft : false
44+ prerelease : false
45+ files : |
46+ target/${{ matrix.target }}/release/itu-keplerbot${{ matrix.binary_extension }}
47+ env :
48+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments