Skip to content

Commit

Permalink
feat(ckb-bench): add github workflow release_ckb_bench.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Jul 30, 2021
1 parent 7c7cbe2 commit 89a7559
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release_ckb_bench.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 89a7559

Please sign in to comment.