-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
name: Sphinx Deploy | ||
on: [push] | ||
jobs: | ||
build: | ||
build-and-deploy: | ||
runs-on: windows-2019 | ||
env: | ||
SPHINX_PACKAGE: ${{ github.workspace }}\dist\_PublishedWebsites\Dsp.Web_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 | ||
- name: Setup MSBuild v1 | ||
uses: microsoft/setup-msbuild@v1 | ||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
- name: setup-msbuild | ||
- name: Setup MSBuild v1.1 | ||
uses: microsoft/[email protected] | ||
- name: Restore Packages | ||
run: nuget restore src/Sphinx.sln | ||
|
@@ -23,12 +29,15 @@ jobs: | |
/p:WebPublishMethod=Package ` | ||
/p:PackageAsSingleFile=true ` | ||
/p:IncludeSetAclProviderOnDestination=False ` | ||
/p:AutoParameterizationWebConfigConnectionStrings=false | ||
- name: Setup MSDeploy | ||
uses: ChristopheLav/iis-deploy@v1 | ||
with: | ||
website-name: 'Sphinx' | ||
msdeploy-service-url: '${{ secrets.MSDEPLOY_URL }}' | ||
msdeploy-username: ${{ secrets.MSDEPLOY_USERNAME }} | ||
msdeploy-password: '${{ secrets.MSDEPLOY_PASSWORD }}' | ||
source-path: ${{ github.workspace }}\dist\_PublishedWebsites\Dsp.Web_Package\Dsp.Web.zip | ||
/p:AutoParameterizationWebConfigConnectionStrings=False | ||
- name: Deploy Application | ||
run: > | ||
"C:/Program Files (x86)/IIS/Microsoft Web Deploy V3/msdeploy.exe" ` | ||
-source:package=$SPHINX_PACKAGE ` | ||
-verb:sync ` | ||
-allowUntrusted ` | ||
-dest:auto,ComputerName=`"$SPHINX_DEPLOY_URL`",UserName=`"$SPHINX_USERNAME`",Password=`"$SPHINX_PASSWORD`",IncludeAcls=False,AuthType=Basic ` | ||
-setParam:name=`"IIS Web Application Name`",value=`"$SPHINX_IIS_WEBSITE_NAME`" ` | ||
-disableLink:AppPoolExtension ` | ||
-disableLink:ContentExtension ` | ||
-disableLink:CertificateExtension |
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