File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' [0-9]+.*'
7+
8+ jobs :
9+ create-release :
10+ name : " Create GitHub release"
11+ # only publish from the origin repository
12+ if : github.repository_owner == 'fornwall'
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : taiki-e/create-gh-release-action@v1
17+ with :
18+ changelog : CHANGELOG.md
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+
22+ crates :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - name : publish package to crates
27+ run : |
28+ cargo package
29+ cargo publish --token ${{ secrets.CARGO_TOKEN }}
30+
31+ binaries :
32+ name : " Upload release binaries"
33+ needs :
34+ - create-release
35+ strategy :
36+ fail-fast : false
37+ matrix :
38+ include :
39+ - target : x86_64-unknown-linux-gnu
40+ os : ubuntu-latest
41+ - target : x86_64-unknown-linux-musl
42+ os : ubuntu-latest
43+ - target : x86_64-apple-darwin
44+ os : macos-latest
45+ - target : x86_64-pc-windows-msvc
46+ os : windows-latest
47+ - target : aarch64-unknown-linux-gnu
48+ os : ubuntu-latest
49+ - target : aarch64-unknown-linux-musl
50+ os : ubuntu-latest
51+ - target : aarch64-apple-darwin
52+ os : macos-latest
53+ - target : universal-apple-darwin
54+ os : macos-latest
55+ runs-on : ${{ matrix.os }}
56+ steps :
57+ - uses : actions/checkout@v4
58+ - uses : dtolnay/rust-toolchain@stable
59+ - uses : taiki-e/upload-rust-binary-action@v1
60+ with :
61+ bin : rust-script
62+ target : ${{ matrix.target }}
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments