Skip to content

Commit fdb18d3

Browse files
committed
Update cd-controls.yml
1 parent 36e822a commit fdb18d3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/cd-controls.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
env:
2929
SOLUTION_NAME: 'Files.sln'
3030
CONFIGURATION: 'Release' # It's not necessary to use a matrix as the package method will always be Release
31+
PLATFORM: 'x64'
3132
WORKING_DIR: '${{ github.workspace }}' # D:\a\Files\Files\
3233
PROJECT_DIR: '${{ github.workspace }}\src\Files.App.Controls'
3334
PACKAGE_PROJECT_PATH: '${{ github.workspace }}\src\Files.App.Controls\Files.App.Controls.csproj'
@@ -61,10 +62,18 @@ jobs:
6162
6263
- name: Restore NuGet
6364
shell: pwsh
64-
run: dotnet restore ${{ env.PACKAGE_PROJECT_PATH }}
65+
run: |
66+
msbuild $env:PACKAGE_PROJECT_PATH `
67+
-t:Restore `
68+
-p:Platform=$env:PLATFORM `
69+
-p:Configuration=$env:CONFIGURATION `
6570
6671
- name: Build Files UI Controls
67-
run: dotnet build ${{ env.PACKAGE_PROJECT_PATH }} --configuration Release --no-restore
72+
run: |
73+
msbuild "$env:PACKAGE_PROJECT_PATH" `
74+
-t:Build `
75+
-p:Platform=$env:PLATFORM `
76+
-p:Configuration=$env:CONFIGURATION
6877
6978
- name: Package Files UI Controls
7079
run: dotnet pack ${{ env.PACKAGE_PROJECT_PATH }} --configuration Release --no-build -o ./output -p:Version=${{ steps.extract_version.outputs.version }}

0 commit comments

Comments
 (0)