From c631b66c261f9fb69bbe0274f223648b0d90a2e2 Mon Sep 17 00:00:00 2001 From: Jared Date: Fri, 28 Aug 2020 10:35:31 -0700 Subject: [PATCH] Update deploy-to-iis.yml --- .github/workflows/deploy-to-iis.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-to-iis.yml b/.github/workflows/deploy-to-iis.yml index 46a2924fd..81ce20888 100644 --- a/.github/workflows/deploy-to-iis.yml +++ b/.github/workflows/deploy-to-iis.yml @@ -80,11 +80,6 @@ jobs: # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 - - # NuGet restore for .NET Framework projects. - - name: NuGet Restore - uses: nuget/setup-nuget@v1 - - run: nuget restore $env:Solution_Name # Execute all unit tests in the solution - name: Execute unit tests @@ -144,7 +139,7 @@ jobs: MSDeploy - Release + $env:Configuration x64 $($env:SiteUrl):80/ False @@ -166,11 +161,11 @@ jobs: "@ New-Item -Path "$env:GITHUB_WORKSPACE\Server\Properties\PublishProfiles\" -ItemType Directory -Force - Set-Content -Path "$env:GITHUB_WORKSPACE\Server\Properties\PublishProfiles\Prod.pubxml" -Value $PublishProfile -Force + Set-Content -Path "$env:GITHUB_WORKSPACE\Server\Properties\PublishProfiles\Test.pubxml" -Value $PublishProfile -Force # Publish server to IIS - name: Publish - run: dotnet publish --configuration Release /p:PublishProfile=Prod /p:Password=$env:ServerPassword /p:Version=$env:CurrentVersion /p:FileVersion=$env:CurrentVersion + run: dotnet publish --configuration $env:Configuration /p:PublishProfile=Test /p:Password=$env:ServerPassword /p:Version=$env:CurrentVersion /p:FileVersion=$env:CurrentVersion # Remove the pfx - name: Remove the pfx