Skip to content

Commit 7b86bb4

Browse files
committed
chore: add github release workflow
1 parent feefd54 commit 7b86bb4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/release.yaml

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

0 commit comments

Comments
 (0)