aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: 6d8d9656023dd02713e2eaf5ed513d41f299ac52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 }}