Test 22 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sphinx Deploy | |
on: [push] | |
jobs: | |
build-and-deploy: | |
runs-on: windows-2019 | |
env: | |
SPHINX_PACKAGE: ${{ github.workspace }}\src\Dsp.Web\obj\Release\Package\Dsp.Web.zip | |
SPHINX_USERNAME: ${{ secrets.MSDEPLOY_USERNAME }} | |
SPHINX_PASSWORD: ${{ secrets.MSDEPLOY_PASSWORD }} | |
SPHINX_DEPLOY_URL: ${{ secrets.MSDEPLOY_URL }} | |
SPHINX_IIS_WEBSITE_NAME: Sphinx | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild v1 | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Setup MSBuild v1.1 | |
uses: microsoft/[email protected] | |
- name: Restore Packages | |
run: nuget restore src/Sphinx.sln | |
- name: Build Solution | |
run: > | |
msbuild .\src\Sphinx.sln ` | |
/p:Configuration=Release ` | |
/p:GenerateSerializationAssemblies=False ` | |
/p:DeployOnBuild=true ` | |
/p:WebPublishMethod=Package ` | |
/p:PackageAsSingleFile=true ` | |
/p:IncludeSetAclProviderOnDestination=False ` | |
/p:AutoParameterizationWebConfigConnectionStrings=False | |
- name: List | |
run: Get-ChildItem -Recurse . | |
- name: Deploy Application | |
shell: cmd | |
run: '"C:/Program Files (x86)/IIS/Microsoft Web Deploy V3/msdeploy.exe" -verb:sync -allowUntrusted -source:package=${{ env.SPHINX_PACKAGE }} -dest:auto,ComputerName="${{ env.SPHINX_DEPLOY_URL }}",UserName="${{ env.SPHINX_USERNAME }}",Password="${{ env.SPHINX_PASSWORD }}",IncludeAcls=False,AuthType=Basic -setParam:name="IIS Web Application Name",value="${{ env.SPHINX_IIS_WEBSITE_NAME }}" -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension' |