Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
juzi5201314 committed Sep 7, 2020
1 parent d98f9ed commit 44470b8
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/${{ REPOSITORY_NAME }}.exe
asset_name: x86_64-windows-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}.exe
asset_path: ./target/release/${{ env.REPOSITORY_NAME }}.exe
asset_name: x86_64-windows-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}.exe
asset_content_type: application/octet-stream

release:
Expand Down Expand Up @@ -67,8 +67,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/x86_64-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: x86_64-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/x86_64-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: x86_64-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream

- name: install wasi target
Expand All @@ -81,16 +81,16 @@ jobs:
run: cargo install --force wasm-gc

- name: run wasm-gc
run: wasm-gc ./target/wasm32-wasi/release/${{ REPOSITORY_NAME }}.wasm
run: wasm-gc ./target/wasm32-wasi/release/${{ env.REPOSITORY_NAME }}.wasm

- name: Upload wasm
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/wasm32-wasi/release/${{ REPOSITORY_NAME }}.wasm
asset_name: wasm32-wasi-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}.wasm
asset_path: ./target/wasm32-wasi/release/${{ env.REPOSITORY_NAME }}.wasm
asset_name: wasm32-wasi-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}.wasm
asset_content_type: application/octet-stream

release-aarch64-unknown-linux-gnu:
Expand Down Expand Up @@ -125,8 +125,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/aarch64-unknown-linux-gnu/release/${{ REPOSITORY_NAME }}
asset_name: aarch64-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/aarch64-unknown-linux-gnu/release/${{ env.REPOSITORY_NAME }}
asset_name: aarch64-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -164,8 +164,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/aarch64-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: aarch64-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/aarch64-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: aarch64-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -203,8 +203,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/arm-unknown-linux-musleabi/release/${{ REPOSITORY_NAME }}
asset_name: arm-unknown-linux-musleabi-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/arm-unknown-linux-musleabi/release/${{ env.REPOSITORY_NAME }}
asset_name: arm-unknown-linux-musleabi-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -242,8 +242,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/arm-unknown-linux-musleabihf/release/${{ REPOSITORY_NAME }}
asset_name: arm-unknown-linux-musleabihf-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/arm-unknown-linux-musleabihf/release/${{ env.REPOSITORY_NAME }}
asset_name: arm-unknown-linux-musleabihf-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -281,8 +281,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/armv5te-unknown-linux-musleabi/release/${{ REPOSITORY_NAME }}
asset_name: armv5te-unknown-linux-musleabi-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/armv5te-unknown-linux-musleabi/release/${{ env.REPOSITORY_NAME }}
asset_name: armv5te-unknown-linux-musleabi-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -320,8 +320,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/armv7-unknown-linux-musleabihf/release/${{ REPOSITORY_NAME }}
asset_name: armv7-unknown-linux-musleabihf-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/armv7-unknown-linux-musleabihf/release/${{ env.REPOSITORY_NAME }}
asset_name: armv7-unknown-linux-musleabihf-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -359,8 +359,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/i586-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: i586-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/i586-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: i586-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -398,8 +398,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/i686-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: i686-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/i686-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: i686-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -437,8 +437,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/mips-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: mips-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/mips-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: mips-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -476,8 +476,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/mipsel-unknown-linux-musl/release/${{ REPOSITORY_NAME }}
asset_name: mipsel-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/mipsel-unknown-linux-musl/release/${{ env.REPOSITORY_NAME }}
asset_name: mipsel-unknown-linux-musl-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -515,8 +515,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/powerpc-unknown-linux-gnu/release/${{ REPOSITORY_NAME }}
asset_name: powerpc-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/powerpc-unknown-linux-gnu/release/${{ env.REPOSITORY_NAME }}
asset_name: powerpc-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -554,8 +554,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/riscv64gc-unknown-linux-gnu/release/${{ REPOSITORY_NAME }}
asset_name: riscv64gc-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/riscv64gc-unknown-linux-gnu/release/${{ env.REPOSITORY_NAME }}
asset_name: riscv64gc-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream


Expand Down Expand Up @@ -593,6 +593,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/s390x-unknown-linux-gnu/release/${{ REPOSITORY_NAME }}
asset_name: s390x-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ REPOSITORY_NAME }}
asset_path: ./target/s390x-unknown-linux-gnu/release/${{ env.REPOSITORY_NAME }}
asset_name: s390x-unknown-linux-gnu-${{ steps.get_release.outputs.tag_name }}-${{ env.REPOSITORY_NAME }}
asset_content_type: application/octet-stream

0 comments on commit 44470b8

Please sign in to comment.