-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from gordon-cs/staging
Release: API Upgrade, Alumni Profile Update
- Loading branch information
Showing
531 changed files
with
18,353 additions
and
45,703 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 |
---|---|---|
|
@@ -3,45 +3,19 @@ name: CI | |
on: push | ||
|
||
jobs: | ||
ci: | ||
runs-on: windows-2019 | ||
ci: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup msbuild | ||
uses: microsoft/setup-msbuild@v1 | ||
- name: Setup .NET Core SDK 6 | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Restore NuGet packages | ||
run: nuget restore Gordon360.sln | ||
|
||
- name: Build API | ||
run: msbuild .\Gordon360\Gordon360.csproj /p:DeployOnBuild=True /p:PublishProfile=${{ github.workspace }}\gha-publish-profiles\CI.pubxml | ||
|
||
# Uncomment to enable test builds. Works in concert with the `Deploy 360Test` Scheduled Task on 360API.gordon.edu VM | ||
# - name: Upload Test Build Artifact | ||
# uses: actions/[email protected] | ||
# if: ${{ github.refs != 'refs/heads/develop' && github.refs != 'refs/heads/master' }} | ||
# with: | ||
# name: build-Test | ||
# path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci | ||
# if-no-files-found: warn | ||
|
||
- name: Upload Train Build Artifact | ||
uses: actions/[email protected] | ||
if: ${{ github.ref == 'refs/heads/develop' }} | ||
with: | ||
name: build-Train | ||
path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci | ||
if-no-files-found: error | ||
|
||
- name: Upload Prod Build Artifact | ||
uses: actions/[email protected] | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
name: build-Prod | ||
path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci | ||
if-no-files-found: error | ||
- name: Build | ||
run: dotnet build |
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 |
---|---|---|
|
@@ -4,24 +4,18 @@ on: | |
workflow_run: | ||
workflows: [CI] | ||
types: [completed] | ||
branches: [api-upgrade] # Wildcard '**' is used to deploy test builds for all branches, for testing deployment workflow. | ||
branches: [develop] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: windows-latest | ||
environment: | ||
name: Train | ||
url: https://360ApiTrain.gordon.edu | ||
|
||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- name: Define deployment environment | ||
run: | | ||
Switch -exact -casesensitive ($Env:GITHUB_REF_NAME) | ||
{ | ||
"master" { echo "DEPLOYMENT_ENVIROMENT=Production" >> $GITHUB_ENV } | ||
"develop" { echo "DEPLOYMENT_ENVIROMENT=Train" >> $GITHUB_ENV } | ||
default { echo "DEPLOMENT_ENVIRONMENT=Test" >> $GITHUB_ENV } | ||
} | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core SDK 6 | ||
|
@@ -33,11 +27,11 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: Publish | ||
run: dotnet publish ${{ github.workspace}}\Gordon360.sln -r win-x64 --no-self-contained -o ${{ github.workspace }}\Gordon360\bin\app.publish\ci -p:EnvironmentName=${{ env.DEPLOYMENT_ENVIRONMENT }} | ||
run: dotnet publish ${{ github.workspace}}\Gordon360.sln -r win-x64 --no-self-contained -o ${{ github.workspace }}\Gordon360\bin\app.publish\ci -p:EnvironmentName=${{ secrets.DEPLOYMENT_ENVIRONMENT }} | ||
|
||
- name: Upload Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: build-${{ env.DEPLOYMENT_ENVIRONMENT }} | ||
name: build-${{ secrets.DEPLOYMENT_ENVIRONMENT }} | ||
path: ${{ github.workspace }}\Gordon360\bin\app.publish\ci | ||
if-no-files-found: error |
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
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
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,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ef": { | ||
"version": "6.0.5", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.