Update deploy-to-iis.yml

This commit is contained in:
Jared 2020-08-28 13:21:43 -07:00 committed by Jared Goodwin
parent 9215443d60
commit 4b213796fe

View File

@ -140,7 +140,7 @@ jobs:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>$env:Configuration</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>x64</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>$($env:SiteUrl):80/</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>False</LaunchSiteAfterPublish>
@ -166,7 +166,9 @@ jobs:
# Publish server to IIS
- name: Publish
run: dotnet publish --configuration $env:Configuration /p:PublishProfile="Test|x64" /p:Password=$env:ServerPassword /p:Version=$env:CurrentVersion /p:FileVersion=$env:CurrentVersion
run: |
echo "Publishing with configuration $env:Configuration."
dotnet publish /p:Platform="x64" /p: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