Skip to content

chore: Update the location of publishfiles #43

chore: Update the location of publishfiles

chore: Update the location of publishfiles #43

# This workflow will build and publish a WinUI 3 unpackaged desktop application
# built on .NET.
name: SimpleList
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
platform: [x64, x86]
runs-on: windows-latest
env:
Solution_Name: SimpleList.sln
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
# Add CommunityToolkit.Labs
- name: Restore NuGet packages
run: dotnet restore /p:RestoreAdditionalProjectSources=https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=${{ matrix.configuration }}
# Create the app by building and publishing the project
- name: Create the app
run: msbuild $env:Solution_Name /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
- name: Upload win10-x64
uses: actions/upload-artifact@v3
with:
name: win10-x64
path: SimpleList/bin/win10-x64
- name: Upload win10-x86
uses: actions/upload-artifact@v3
with:
name: win10-x86
path: SimpleList/bin/win10-x86