Skip to content

Delete .idea/.idea.PixaiBot/.idea directory #39

Delete .idea/.idea.PixaiBot/.idea directory

Delete .idea/.idea.PixaiBot/.idea directory #39

name: .NET Core Desktop
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
Solution_Name: PixaiBot.sln
Pfx_Key: ${{ secrets.PFX_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Execute unit tests
run: dotnet test
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Decode the pfx
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Pfx_Key }}")
$certificatePath = "$env:UserProfile\GitHubActionsWorkflow.pfx"
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Built Application
path: $env:UserProfile