Skip to content

Commit

Permalink
release: generate installer and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
VincePaulin committed Oct 1, 2024
1 parent c3a3488 commit b7b633f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7b633f

Please sign in to comment.