2023-08-05 14:27:09 +02:00
|
|
|
name: Create installer
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["Build"]
|
|
|
|
types: [completed]
|
|
|
|
# make sure this only runs on the default branch
|
2023-10-01 11:19:26 +02:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- "bugfix-release/*"
|
|
|
|
- "release/*"
|
2023-08-05 14:27:09 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-installer:
|
|
|
|
runs-on: windows-latest
|
|
|
|
# Only run manually or when a build succeeds
|
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-10-01 11:19:26 +02:00
|
|
|
qt-version: ["6.5.0"]
|
2023-08-05 14:27:09 +02:00
|
|
|
steps:
|
2023-09-09 15:31:12 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-05 14:27:09 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # allows for tags access
|
|
|
|
|
|
|
|
- name: Download artifact
|
2023-12-16 14:09:06 +01:00
|
|
|
uses: dawidd6/action-download-artifact@v3
|
2023-08-05 14:27:09 +02:00
|
|
|
with:
|
|
|
|
workflow: build.yml
|
|
|
|
name: chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
|
2023-10-01 11:19:26 +02:00
|
|
|
commit: ${{ github.sha }}
|
2023-08-05 14:27:09 +02:00
|
|
|
path: build/
|
|
|
|
|
|
|
|
- name: Unzip
|
|
|
|
run: 7z e -spf chatterino-windows-x86-64-Qt-${{ matrix.qt-version }}.zip
|
|
|
|
working-directory: build
|
|
|
|
|
|
|
|
- name: Install InnoSetup
|
|
|
|
run: choco install innosetup
|
|
|
|
|
|
|
|
- name: Add InnoSetup to path
|
|
|
|
run: echo "C:\Program Files (x86)\Inno Setup 6\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
|
|
|
|
- name: Enable Developer Command Prompt
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
|
|
|
|
|
|
- name: Build installer
|
|
|
|
id: build-installer
|
|
|
|
working-directory: build
|
|
|
|
run: ..\.CI\build-installer.ps1
|
|
|
|
shell: powershell
|
|
|
|
|
|
|
|
- name: Upload installer
|
2023-12-16 11:43:00 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-08-05 14:27:09 +02:00
|
|
|
with:
|
2023-10-01 11:19:26 +02:00
|
|
|
path: build/${{ steps.build-installer.outputs.C2_INSTALLER_BASE_NAME }}.exe
|
|
|
|
name: ${{ steps.build-installer.outputs.C2_INSTALLER_BASE_NAME }}.exe
|