chore: update slnx file #6
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: Build, Sign and Publish | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
env: | |
VERSION: '4.3.${{ github.run_number }}' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Build the app | |
run: dotnet build --configuration $env:Configuration -p:Version=${{ env.VERSION }} -p:FileVersion=${{ env.VERSION }} | |
env: | |
Configuration: ${{ matrix.configuration }} | |
- name: Sign App Files | |
uses: GabrielAcostaEngler/[email protected] | |
with: | |
certificate: '${{ secrets.BASE64_ENCODED_PFX }}' | |
cert-password: '${{ secrets.PFX_PASSWORD }}' | |
cert-sha1: '${{ secrets.CERT_HASH_SHA1 }}' | |
# path to folder containing files to sign. | |
folder: 'OotD.Launcher\bin\Release\net9.0-windows7.0' | |
recursive: true | |
timestamp-server: 'http://timestamp.digicert.com' | |
- name: Build Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: "Setup Script.iss" | |
options: /O+ | |
- name: Sign Installer | |
uses: GabrielAcostaEngler/[email protected] | |
with: | |
certificate: '${{ secrets.BASE64_ENCODED_PFX }}' | |
cert-password: '${{ secrets.PFX_PASSWORD }}' | |
cert-sha1: '${{ secrets.CERT_HASH_SHA1 }}' | |
# path to folder containing files to sign. | |
folder: 'ServerStaging' | |
recursive: false | |
timestamp-server: 'http://timestamp.digicert.com' | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Installer | |
path: ServerStaging |