Skip to content

Commit

Permalink
Merge branch 'housing-add-roommate' of https://github.com/gordon-cs/g…
Browse files Browse the repository at this point in the history
…ordon-360-api into housing-add-roommate
  • Loading branch information
ArabellaJi committed Nov 13, 2023
2 parents e6849af + 5e9870d commit 84892fd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,32 @@ jobs:
path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci
if-no-files-found: error

deploy-senior-project:
runs-on: windows-latest
if: ${{ github.ref == 'refs/heads/senior-project' }}
needs: build
environment:
name: Senior Project
url: https://360ApiSP.gordon.edu

steps:
- uses: actions/checkout@v3

- name: Setup .NET Core SDK 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Install dependencies
run: dotnet restore

- name: Publish
run: dotnet publish ${{ github.workspace}}\Gordon360.sln -r win-x64 --no-self-contained -p:PublishDir=${{ github.workspace }}\Gordon360\bin\app.publish\ci -p:EnvironmentName=${{ secrets.DEPLOYMENT_ENVIRONMENT }}

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: build-${{ secrets.DEPLOYMENT_ENVIRONMENT }}
path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci
if-no-files-found: error

0 comments on commit 84892fd

Please sign in to comment.