Skip to content

Commit 61c58cc

Browse files
committed
deployのためのworkflow記述
1 parent 9c6bfbe commit 61c58cc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/release.yml
2+
# https://github.com/rust-build/rust-build.action#build-windows-and-linux-and-upload-as-zip
3+
4+
on:
5+
release:
6+
types: [created]
7+
jobs:
8+
release:
9+
name: release ${{ matrix.target }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
15+
steps:
16+
- uses: actions/checkout@master
17+
- name: Compile and release
18+
uses: rust-build/[email protected]
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
RUSTTARGET: ${{ matrix.target }}

0 commit comments

Comments
 (0)