File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ env :
7+ CARGO_TERM_COLOR : always
8+
9+ jobs :
10+ build :
11+ runs-on : windows-latest
12+
13+ steps :
14+ - name : Set up Rust
15+ uses : actions-rs/toolchain@v1.0.7
16+ with :
17+ toolchain : stable
18+
19+ - uses : shogo82148/actions-setup-perl@v1
20+ with :
21+ perl-version : " 5.38"
22+
23+ - uses : actions/checkout@v4
24+
25+ - name : Build
26+ run : cargo build --release
27+
28+ - name : Change Icon
29+ run : curl -L -O https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe && ./rcedit-x64.exe target/release/voxelproxy.exe --set-icon voxelproxy.ico
30+
31+ - name : Extract version from Cargo.toml
32+ id : version
33+ shell : bash
34+ run : |
35+ ver=$(grep '^version =' Cargo.toml | sed -E 's/version = "(.*)"/\1/')
36+ echo "version=$ver" >> $GITHUB_OUTPUT
37+
38+ - name : Get last commit message
39+ id : changelog
40+ shell : bash
41+ run : |
42+ msg=$(git log -1 --pretty=format:"%s")
43+ echo "msg=$msg" >> $GITHUB_OUTPUT
44+
45+ - uses : actions/upload-artifact@v4
46+ with :
47+ name : voxelproxy
48+ path : target/release/voxelproxy.exe
49+
50+ - name : Create GitHub Release
51+ uses : softprops/action-gh-release@v2
52+ with :
53+ tag_name : ${{ steps.version.outputs.version }}
54+ name : Release ${{ steps.version.outputs.version }}
55+ body : ${{ steps.changelog.outputs.msg }}
56+ files : target/release/voxelproxy.exe
57+ env :
58+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments