Skip to content

Commit 9eec7fc

Browse files
committed
ci: release build config
1 parent 58cba93 commit 9eec7fc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
# (required) GitHub token for creating GitHub Releases.
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
upload-assets:
22+
needs: create-release
23+
strategy:
24+
matrix:
25+
include:
26+
- target: x86_64-unknown-linux-gnu
27+
os: ubuntu-latest
28+
- target: x86_64-apple-darwin
29+
os: macos-latest
30+
- target: x86_64-pc-windows-msvc
31+
os: windows-latest
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: taiki-e/upload-rust-binary-action@v1
36+
with:
37+
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
38+
# Note that glob pattern is not supported yet.
39+
bin: 'work_log'
40+
target: ${{ matrix.target }}
41+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)