diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f5e58fdc67..60546b841d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -317,23 +317,25 @@ jobs: run: choco install innosetup --confirm shell: cmd - - name: Post-build Windows operations - run: ./scripts/build-windows.ps1 - shell: pwsh + # Use the Inno Setup script to create the installer + - name: Create Installer + run: "C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" scripts/installer.iss + shell: cmd + # Generated installer - name: Create Archive for Release - run: tar -czf "tawkie-windows.tar.gz" -C build/windows/runner/Release/ . - # Create an archive for the release and include the version in the filename + run: tar -czf "tawkie-windows-${{ env.TAG }}.tar.gz" -C Output TawkieInstaller.exe + + # Upload archive to GitHub release page - name: Upload Windows Release to GitHub uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: "tawkie-windows.tar.gz" + asset_path: "tawkie-windows-${{ env.TAG }}.tar.gz" asset_name: "tawkie-windows-${{ env.TAG }}.tar.gz" asset_content_type: application/gzip - # Upload the archive on the GitHub release page as an asset # promote_snapcraft: # runs-on: ubuntu-latest