Skip to content

Commit

Permalink
Add action to create installer
Browse files Browse the repository at this point in the history
  • Loading branch information
DSPaul committed Jun 6, 2024
1 parent 035efb8 commit f6881f1
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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




0 comments on commit f6881f1

Please sign in to comment.