mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
Fix CI attempt 4
This commit is contained in:
18
.github/workflows/dotnet-desktop.yml
vendored
18
.github/workflows/dotnet-desktop.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: .NET Core Desktop
|
name: Build and publish server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -24,29 +24,27 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# Install the .NET Core workload
|
# Install the .NET Core workload
|
||||||
- name: Install .NET Core
|
- name: Install .NET 8
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
||||||
- name: Setup MSBuild.exe
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
# Restore the application to populate the obj folder with RuntimeIdentifiers
|
- name: Restore packages
|
||||||
- name: Restore the application
|
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Publish Server Selector
|
- name: Publish Server Selector GUI
|
||||||
run: dotnet publish ServerSelector.Desktop
|
run: dotnet publish ServerSelector.Desktop
|
||||||
|
|
||||||
- name: Publish nksrv
|
- name: Publish Server
|
||||||
run: dotnet publish nksrv
|
run: dotnet publish nksrv
|
||||||
|
|
||||||
- name: prepare publish directory
|
- name: Copy to output
|
||||||
run: md ${GITHUB_WORKSPACE}/out/ && xcopy "${GITHUB_WORKSPACE}\ServerSelector.Desktop\bin\Release\net8.0\win-x64\publish" "${GITHUB_WORKSPACE}\out" && xcopy "${GITHUB_WORKSPACE}\nksrv\bin\Release\net8.0\win-x64\publish\" "${GITHUB_WORKSPACE}\out\"
|
run: md ${GITHUB_WORKSPACE}/out/ && xcopy "${GITHUB_WORKSPACE}\ServerSelector.Desktop\bin\Release\net8.0\win-x64\publish\" "${GITHUB_WORKSPACE}\out\" && xcopy "${GITHUB_WORKSPACE}\nksrv\bin\Release\net8.0\win-x64\publish\" "${GITHUB_WORKSPACE}\out\"
|
||||||
|
|
||||||
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user