From 475b8721413a079c9317e12789b0283084f12486 Mon Sep 17 00:00:00 2001 From: Ty Morrow Date: Sun, 9 Jun 2024 14:39:15 -0600 Subject: [PATCH] Test 11 --- .github/workflows/deploy.yml | 33 ++++++++++++++++++----------- src/Dsp.Web/Views/Home/Index.cshtml | 2 +- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aba98ef7..ef64a5f9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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/setup-nuget@v1.0.5 - - name: setup-msbuild + - name: Setup MSBuild v1.1 uses: microsoft/setup-msbuild@v1.1 - 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 diff --git a/src/Dsp.Web/Views/Home/Index.cshtml b/src/Dsp.Web/Views/Home/Index.cshtml index adf68b20..8ec396cc 100644 --- a/src/Dsp.Web/Views/Home/Index.cshtml +++ b/src/Dsp.Web/Views/Home/Index.cshtml @@ -19,7 +19,7 @@

DELTA SIGMA PHI

DELTA EPSILON CHAPTER

MISSOURI S&T

-

(actually auto-deployed)

+

(test 11)