Skip to content

Commit

Permalink
Create dotnet-framework.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kavejo authored Apr 17, 2024
1 parent ccf5f54 commit 8b41773
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/dotnet-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: TransportAgents .NETFramework Build

on:
push:
branches: [ "master" ]

jobs:
build:
runs-on: windows-latest
env:
Solution_Name: TransportAgents.sln
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

#- name: Setup NuGet
# uses: nuget/setup-nuget@v2

- name: Build Solution
run: |
msbuild.exe $env:Solution_Name /p:platform="Any CPU" /p:configuration="Release"
# Decode the base 64 encoded pfx and save the Signing_Certificate
#- name: Decode the pfx
# run: |
# $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
# $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
# [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)

# Create the app package by building and packaging the Windows Application Packaging project
#- name: Create the app package
# run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
# env:
# Appx_Bundle: Always
# Appx_Bundle_Platforms: x86|x64
# Appx_Package_Build_Mode: StoreUpload
# Configuration: ${{ matrix.configuration }}

# Remove the pfx
#- name: Remove the pfx
# run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx

0 comments on commit 8b41773

Please sign in to comment.