diff --git a/.github/workflows/electron-builder-win.yml b/.github/workflows/electron-builder-win.yml index f66cc40..c958578 100644 --- a/.github/workflows/electron-builder-win.yml +++ b/.github/workflows/electron-builder-win.yml @@ -88,3 +88,15 @@ jobs: #Disable auto-update for appx also yarn run sync disableUpdate yarn run release-appx + + - name: Install GitHub CLI + uses: cli/cli-action@v1 + + - name: Upload portable zip to GitHub Release + shell: powershell + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + $version = "${{ github.ref }}" -replace 'refs/tags/v', '' + gh release upload "v$version" "dist/draw.io-$version-windows.zip" --clobber +