From 61c7cb5993fc7afba2706ea57e4c6485db382ea2 Mon Sep 17 00:00:00 2001 From: Bagus Nur Listiyono <28079733+bagusnl@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:31:59 +0700 Subject: [PATCH] Update build.yml - Switch to dotnet publish - Always use windows-latest --- .github/workflows/build.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 95b9aec84..40641a7ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,24 +4,13 @@ run-name: Canary Build for ${{ github.ref }} on: workflow_dispatch: - inputs: - os: - # Use Windows Server 2019 to retain compatibility (WindowsAppSDK last supported OS build) - type: choice - description: "Select Runner image to use for this deployment" - default: "windows-2019" - options: - - "windows-latest" - - "windows-2019" - - "windows-2022" - schedule: - cron: '0 0 * * 0' # At 00:00 on Sunday jobs: build: # runs-on: [self-hosted, linux] - runs-on: ${{ github.event.inputs.os || 'windows-latest' }} + runs-on: windows-latest strategy: matrix: configuration: [Release] # No need to distribute Debug builds @@ -74,8 +63,7 @@ jobs: - name: Build run: | - msbuild CollapseLauncher "-property:Configuration=$env:Configuration;Platform=$env:Platform;PublishProfile=Publish-PreviewRelease" - dotnet build CollapseLauncher -p:DeployOnBuild=true -p:PublishProfile=Publish-PreviewRelease -c $env:Configuration -p:Platform=$env:Platform -f ${{ matrix.framework }} -p:PublishDir=".\preview-build\" + dotnet publish CollapseLauncher -p:PublishProfile=Publish-PreviewRelease -p:PublishDir=".\preview-build\" # - name: Upload Artifact (Debug) # uses: actions/upload-artifact@v3.1.2 @@ -89,4 +77,4 @@ jobs: if: ${{ matrix.configuration == 'Release' }} with: name: collapse_${{ matrix.platform }}-${{ matrix.configuration }}_${{ matrix.framework }}_${{ github.sha }} - path: ./preview-build/ + path: ./CollapseLauncher/preview-build/