Skip to content

Commit 6b7a018

Browse files
committed
Add task to release the binary to GitHub
1 parent 26233e2 commit 6b7a018

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
upload-assets:
12+
strategy:
13+
matrix:
14+
include:
15+
- target: aarch64-unknown-linux-gnu
16+
os: ubuntu-latest
17+
- target: aarch64-apple-darwin
18+
os: macos-latest
19+
- target: x86_64-unknown-linux-gnu
20+
os: ubuntu-latest
21+
- target: x86_64-apple-darwin
22+
os: macos-latest
23+
- target: universal-apple-darwin
24+
os: macos-latest
25+
- target: x86_64-pc-windows-gnu
26+
os: windows-latest
27+
runs-on: ${{ matrix.os }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: taiki-e/upload-rust-binary-action@v1
31+
with:
32+
bin: rails-new
33+
target: ${{ matrix.target }}
34+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)