File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Usage:
2+ # git tag -a vX.X.X
3+ # git push --tagsA
4+ #
5+ # Source: https://daniellockyer.com/automated-rust-releases/
6+
7+ name : Release
8+
9+ on :
10+ push :
11+ tags :
12+ - " v*"
13+
14+ jobs :
15+ publish :
16+ name : Publish for ${{ matrix.os }}
17+ runs-on : ${{ matrix.os }}
18+ strategy :
19+ matrix :
20+ name : [linux, windows, macos]
21+
22+ include :
23+ - name : linux
24+ os : ubuntu-latest
25+ artifact_name : glint
26+ asset_name : glint-linux
27+ - name : windows
28+ os : windows-latest
29+ artifact_name : glint.exe
30+ asset_name : glint-windows
31+ - name : macos
32+ os : macos-latest
33+ artifact_name : glint
34+ asset_name : glint-macos
35+
36+ steps :
37+ - uses : actions/checkout@v1
38+
39+ - uses : actions-rs/toolchain@v1
40+ with :
41+ profile : minimal
42+ toolchain : stable
43+
44+ - name : Build
45+ run : cargo build --release --locked
46+
47+ - name : Upload binaries to release
48+ uses : svenstaro/upload-release-action@v1-release
49+ with :
50+ repo_token : ${{ secrets.GITHUB_TOKEN }}
51+ file : target/release/${{ matrix.artifact_name }}
52+ asset_name : ${{ matrix.asset_name }}
53+ tag : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments