mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: .NET Core Desktop
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
matrix:
|
|
configuration: [Release]
|
|
|
|
runs-on: windows-latest # For a list of available runner types, refer to
|
|
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# Install the .NET Core workload
|
|
- name: Install .NET Core
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
|
- name: Setup MSBuild.exe
|
|
uses: microsoft/setup-msbuild@v2
|
|
|
|
# Restore the application to populate the obj folder with RuntimeIdentifiers
|
|
- name: Restore the application
|
|
run: dotnet restore
|
|
|
|
- name: Publish Server Selector
|
|
run: dotnet publish ServerSelector.Desktop
|
|
|
|
- name: Publish nksrv
|
|
run: dotnet publish nksrv
|
|
|
|
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: MSIX Package
|
|
path: ${{ env.Wap_Project_Directory }}\AppPackages
|