Skip to content

Commit c5eac8a

Browse files
authored
Create rust.yml
1 parent 8006985 commit c5eac8a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/rust.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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@v3
16+
- uses: taiki-e/create-gh-release-action@v1
17+
with:
18+
# (required) GitHub token for creating GitHub Releases.
19+
token: ${{ secrets.GIT_CREDENTIALS }}
20+
21+
upload-assets:
22+
strategy:
23+
matrix:
24+
os:
25+
- ubuntu-latest
26+
- macos-latest
27+
- windows-latest
28+
runs-on: ${{ matrix.os }}
29+
steps:
30+
- uses: actions/checkout@v3
31+
- uses: taiki-e/upload-rust-binary-action@v1
32+
with:
33+
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
34+
# Note that glob pattern is not supported yet.
35+
bin: server-bot-rust
36+
# (optional) On which platform to distribute the `.tar.gz` file.
37+
# [default value: unix]
38+
# [possible values: all, unix, windows, none]
39+
tar: unix
40+
# (optional) On which platform to distribute the `.zip` file.
41+
# [default value: windows]
42+
# [possible values: all, unix, windows, none]
43+
zip: windows
44+
# (required) GitHub token for uploading assets to GitHub Releases.
45+
token: ${{ secrets.GIT_CREDENTIALS }}

0 commit comments

Comments
 (0)