From 89a75595b6d6801a6a40ca82461950f5fae4dbf2 Mon Sep 17 00:00:00 2001 From: keroro Date: Fri, 30 Jul 2021 18:57:06 +0800 Subject: [PATCH] feat(ckb-bench): add github workflow release_ckb_bench.yml --- .github/workflows/release_ckb_bench.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release_ckb_bench.yml diff --git a/.github/workflows/release_ckb_bench.yml b/.github/workflows/release_ckb_bench.yml new file mode 100644 index 0000000..339f84c --- /dev/null +++ b/.github/workflows/release_ckb_bench.yml @@ -0,0 +1,25 @@ +name: release ckb-bench + +on: + push: + tags: + - 'v*.*.*' + - 'rc-v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: olegtarasov/get-tag@v2.1 + - name: build ckb-bench + run: | + cd ckb-bench && cargo build --release + cd target/release + tar -czvf ckb-bench-${{ env.GIT_TAG_NAME }}-unknown-linux-gnu.tar.gz ckb-bench + - name: release ckb-bench + uses: softprops/action-gh-release@v1 + with: + files: "ckb-bench/target/release/ckb-bench-${{ env.GIT_TAG_NAME }}-unknown-linux-gnu.tar.gz" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}