Skip to content

Commit 7089745

Browse files
ci: build binaries on publish (#16)
1 parent fec7bfb commit 7089745

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- '[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+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
upload-assets:
21+
needs: create-release
22+
strategy:
23+
matrix:
24+
include:
25+
- target: aarch64-unknown-linux-gnu
26+
os: ubuntu-latest
27+
- target: aarch64-apple-darwin
28+
os: macos-latest
29+
- target: x86_64-unknown-linux-gnu
30+
os: ubuntu-latest
31+
- target: x86_64-apple-darwin
32+
os: macos-latest
33+
- target: x86_64-pc-windows-msvc
34+
os: windows-latest
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: taiki-e/upload-rust-binary-action@v1
39+
with:
40+
bin: protols
41+
target: ${{ matrix.target }}
42+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)