1+ name : Release
2+
3+ permissions :
4+ contents : write
5+
6+ on :
7+ push :
8+ tags :
9+ - v[0-9]+.*
10+
11+ jobs :
12+ create-release :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : taiki-e/create-gh-release-action@v1
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
19+
20+ upload-assets :
21+ needs : create-release
22+ strategy :
23+ matrix :
24+ include :
25+ - target : x86_64-unknown-linux-gnu
26+ os : ubuntu-latest
27+ - target : x86_64-apple-darwin
28+ os : macos-latest
29+ - target : x86_64-pc-windows-msvc
30+ os : windows-latest
31+ runs-on : ${{ matrix.os }}
32+ steps :
33+ - uses : actions/checkout@v4
34+ - uses : taiki-e/upload-rust-binary-action@v1
35+ with :
36+ # (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
37+ # Note that glob pattern is not supported yet.
38+ bin : toico
39+ # (optional) Target triple, default is host triple.
40+ # This is optional but it is recommended that this always be set to
41+ # clarify which target you are building for if macOS is included in
42+ # the matrix because GitHub Actions changed the default architecture
43+ # of macos-latest since macos-14.
44+ target : ${{ matrix.target }}
45+ # (optional) On which platform to distribute the `.tar.gz` file.
46+ # [default value: unix]
47+ # [possible values: all, unix, windows, none]
48+ tar : unix
49+ # (optional) On which platform to distribute the `.zip` file.
50+ # [default value: windows]
51+ # [possible values: all, unix, windows, none]
52+ zip : windows
53+ # (required) GitHub token for uploading assets to GitHub Releases.
54+ token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments