-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build and deploy workflows; update web.config defaults.
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 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,5 +1,8 @@ | ||
name: Sphinx Build | ||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Sphinx Deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build-and-deploy: | ||
runs-on: windows-latest | ||
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 }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup MSBuild v1 | ||
uses: microsoft/setup-msbuild@v1 | ||
- name: Setup NuGet v2.0.0 | ||
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: 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=Sphinx -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension' | ||
3 |
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