Skip to content

Commit

Permalink
fix(ci): Upload window init exe file
Browse files Browse the repository at this point in the history
  • Loading branch information
drager committed Jul 4, 2021
1 parent 260d79a commit a8423bd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ jobs:
if: matrix.build == 'windows'
shell: bash
run: |
mv ./target/release/${{ env.RELEASE_BIN }}.exe ./dist/${{ env.RELEASE_BIN }}.exe
cp ./target/release/${{ env.RELEASE_BIN }}.exe ./dist/${{ env.RELEASE_BIN }}.exe
cp ./target/release/${{ env.RELEASE_BIN }}.exe wasm-pack-init.exe
mv ${{ env.RELEASE_ADDS }} ./dist
mv wasm-pack-init.exe ${{ env.RELEASE_DIR }}
7z a -ttar -so -an ./dist | 7z a -si ./${{ env.RELEASE_DIR }}/${{ env.RELEASE_BIN }}-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.tar.gz
- name: Create tarball (MacOS)
Expand Down Expand Up @@ -134,7 +136,7 @@ jobs:
with:
name: linux

- name: Download MacOS tarball
- name: Download Windows tarball
uses: actions/download-artifact@v1
with:
name: windows
Expand Down Expand Up @@ -164,6 +166,16 @@ jobs:
asset_content_type: application/gzip
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.WINDOWS_TARGET }}.tar.gz

- name: Release Windows init exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./windows/wasm-pack-init.exe
asset_content_type: application/vnd.microsoft.portable-executable
asset_name: wasm-pack-init.exe

- name: Release MacOS tarball
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit a8423bd

Please sign in to comment.