Skip to content

Commit d08c53c

Browse files
committed
feat: add release action
1 parent 33921af commit d08c53c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
release
3+
4+
name: Release
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: stable
16+
- uses: actions-rs/cargo@v1
17+
with:
18+
command: test
19+
20+
build:
21+
name: Rust project
22+
needs: test
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: stable
30+
- uses: actions-rs/cargo@v1
31+
with:
32+
command: build
33+
args: --release
34+
- name: Archive Binary
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: binary
38+
path: target/release/pct

0 commit comments

Comments
 (0)