From 72c7da0a85089b3ed6303ef641a137c6ea61927f Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 27 Mar 2021 01:57:04 -0700 Subject: workflow --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github') 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 }} -- cgit v1.2.3