aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2021-03-27 01:57:04 -0700
committerJames Campos <james.r.campos@gmail.com>2021-03-27 01:57:04 -0700
commit72c7da0a85089b3ed6303ef641a137c6ea61927f (patch)
treeb28521937a663065ae6c27efb33a65aa54ecabab /.github
parente89d24bfc8242e43992eb420ffe468092e381a62 (diff)
downloadbk-72c7da0a85089b3ed6303ef641a137c6ea61927f.tar.gz
workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..6d8d965
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,29 @@
+name: Main
+
+on:
+ push:
+ tags:
+ - 'v*.*.*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Stable rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ override: true
+ - name: Build
+ run: |
+ cargo build --verbose --release
+ mv target/release/bk bk-linux
+ strip bk-linux
+ - name: Release
+ uses: softprops/action-gh-release@v1
+ with:
+ files: bk-linux
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}