diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 581de29f8a9..ec52e94606d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -341,6 +341,7 @@ jobs: uses: actions/download-artifact@v2 with: path: artifacts + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -351,8 +352,8 @@ jobs: release_name: Release ${{ needs.setup.outputs.VERSION }} draft: true prerelease: false - - name: Upload Release Asset Windows - id: upload-release-asset-windows + + - name: Upload Release Asset Windows Installer uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -361,8 +362,18 @@ jobs: asset_path: artifacts/wasmer-windows-amd64/WasmerInstaller.exe asset_name: wasmer-windows-installer.exe asset_content_type: application/vnd.microsoft.portable-executable + + - name: Upload Release Asset Windows + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: artifacts/wasmer-windows-amd64/wasmer.tar.gz + asset_name: wasmer-windows-amd64.tar.gz + asset_content_type: application/gzip + - name: Upload Release Asset Linux amd64 - id: upload-release-asset-linux-amd64 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -371,8 +382,8 @@ jobs: asset_path: artifacts/wasmer-linux-amd64/wasmer.tar.gz asset_name: wasmer-linux-amd64.tar.gz asset_content_type: application/gzip + - name: Upload Release Asset Mac amd64 - id: upload-release-asset-mac-amd64 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -381,8 +392,8 @@ jobs: asset_path: artifacts/wasmer-darwin-amd64/wasmer.tar.gz asset_name: wasmer-darwin-amd64.tar.gz asset_content_type: application/gzip + - name: Upload Release Asset Mac arm64 - id: upload-release-asset-mac-arm64 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -391,8 +402,8 @@ jobs: asset_path: artifacts/wasmer-darwin-arm64/wasmer.tar.gz asset_name: wasmer-darwin-arm64.tar.gz asset_content_type: application/gzip + - name: Upload Release Asset Linux aarch64 - id: upload-release-asset-linux-aarch64 uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}