Skip to content

Commit 72c7da0

Browse files
committed
workflow
1 parent e89d24b commit 72c7da0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Stable rust
15+
uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: stable
18+
override: true
19+
- name: Build
20+
run: |
21+
cargo build --verbose --release
22+
mv target/release/bk bk-linux
23+
strip bk-linux
24+
- name: Release
25+
uses: softprops/action-gh-release@v1
26+
with:
27+
files: bk-linux
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)