Create Installer #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Installer | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number that will appear in the exe name' | |
required: true | |
type: string | |
branch: | |
description: 'the branch used to create the installer' | |
required: true | |
type: string | |
jobs: | |
create-installer: | |
name: Build | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install Inno Setup | |
run: choco install innosetup --version=6.2.1 -y | |
shell: pwsh | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: publish | |
run: dotnet publish -p:PublishProfile=FolderProfile.pubxml" | |
- name: package | |
run: iscc Deployment/install.iss | |
- name: Upload installer | |
uses: actions/upload-artifact@v3 | |
with: | |
name: COMPASS_Installer | |
path: Deployment\Versions\COMPASS_Setup_${{ inputs.version }}.exe | |