Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ansjsun authored Jul 20, 2020
1 parent 4059cbe commit 2fd4682
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


on:
push:
tags:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2fd4682

Please sign in to comment.