-
-
Notifications
You must be signed in to change notification settings - Fork 42
47 lines (42 loc) · 1.25 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
release:
types:
- created
defaults:
run:
shell: bash
name: release
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-linux-x64
- run: gh release upload $TAG xbuild-linux-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-macos-x64
- run: gh release upload $TAG xbuild-macos-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x.exe xbuild-windows-x64.exe
- run: gh release upload $TAG xbuild-windows-x64.exe -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}