From 2fd4682d3537e1ec53d4ae539ee8bc889332b1f7 Mon Sep 17 00:00:00 2001 From: ansj Date: Mon, 20 Jul 2020 18:46:09 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48d5a1c..02f0057 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,3 @@ - - on: push: tags: @@ -23,11 +21,10 @@ jobs: if: matrix.os == 'macOS-latest' run: rustup component add rustfmt --toolchain stable-x86_64-apple-darwin - - name: Build project run: | cargo build --release - + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -38,8 +35,7 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: false - - + - name: Upload Release Asset For Mac if: matrix.os == 'macOS-latest' id: upload-release-asset-mac @@ -51,7 +47,7 @@ jobs: asset_path: ./target/release/chubaodb asset_name: chubaodb_mac asset_content_type: application/zip - + - name: Upload Release Asset For Linux if: matrix.os == 'ubuntu-latest' id: upload-release-asset-linux