File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types :
4+ - created
5+
6+ defaults :
7+ run :
8+ shell : bash
9+
10+ name : release
11+
12+ jobs :
13+ linux :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v3
17+ - uses : hecrj/setup-rust-action@v1
18+ - run : cargo install --path xbuild --root .
19+ - run : mv bin/x xbuild-linux-x64
20+ - run : gh release upload $TAG xbuild-linux-x64 -R rust-mobile/xbuild
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ TAG : ${{ github.event.release.tag_name }}
24+
25+ macos :
26+ runs-on : macos-latest
27+ steps :
28+ - uses : actions/checkout@v3
29+ - uses : hecrj/setup-rust-action@v1
30+ - run : cargo install --path xbuild --root .
31+ - run : mv bin/x xbuild-macos-x64
32+ - run : gh release upload $TAG xbuild-macos-x64 -R rust-mobile/xbuild
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ TAG : ${{ github.event.release.tag_name }}
36+
37+ windows :
38+ runs-on : windows-latest
39+ steps :
40+ - uses : actions/checkout@v3
41+ - uses : hecrj/setup-rust-action@v1
42+ - run : cargo install --path xbuild --root .
43+ - run : mv bin/x.exe xbuild-windows-x64.exe
44+ - run : gh release upload $TAG xbuild-windows-x64.exe -R rust-mobile/xbuild
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ TAG : ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments