Skip to content

Commit

Permalink
ci: release a standalone move-cli binary (#2740)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanne007 authored Jul 26, 2021
1 parent 5e99994 commit 12ea145
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release_asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ jobs:
args: --release
- name: build release asset
run: bash ./scripts/release.sh ${{ matrix.platform }}

- name: upload artifact asset
uses: actions/upload-artifact@v2
if: ${{ github.event_name != 'release'}}
with:
name: starcoin-${{ matrix.platform }}.zip
path: ./starcoin-${{ matrix.platform }}.zip

- name: upload release asset
if: ${{ github.event_name == 'release'}}
id: upload-release-asset
Expand All @@ -60,3 +62,12 @@ jobs:
asset_path: ./starcoin-${{ matrix.platform }}.zip
asset_name: starcoin-${{ matrix.platform }}.zip
asset_content_type: application/zip
- name: upload move-cli release asset
if: ${{ github.event_name == 'release'}}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/release/move
asset_name: move-${{ matrix.platform }}

0 comments on commit 12ea145

Please sign in to comment.