-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tooling): migrate to github actions (#253)
* Test action for building * set pre-release flag * try forcing version * no need for msbuild * Fix warning during build * Fixes * rename * Add inno build step * Add incrementing versions * fix var * another try * try as separate flags * cleanup * Finish up
- Loading branch information
Showing
2 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build and Sign | ||
|
||
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@v3 | ||
with: | ||
name: Installer | ||
path: ServerStaging |
Submodule NetSparkle
updated
2 files
+0 −1 | NetSparkle/NetSparkle.csproj | |
+6 −7 | SampleApplication/SampleApplication.csproj |