-
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.
- Loading branch information
Showing
3 changed files
with
88 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
ci: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup msbuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
- 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.refs == '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.refs == 'refs/heads/master' }} | ||
with: | ||
name: build-Prod | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
https://go.microsoft.com/fwlink/?LinkID=208121. | ||
--> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<DeleteExistingFiles>False</DeleteExistingFiles> | ||
<ExcludeApp_Data>False</ExcludeApp_Data> | ||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | ||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> | ||
<LastUsedPlatform>Any CPU</LastUsedPlatform> | ||
<PublishProvider>FileSystem</PublishProvider> | ||
<PublishUrl>bin\app.publish\ci</PublishUrl> | ||
<WebPublishMethod>FileSystem</WebPublishMethod> | ||
</PropertyGroup> | ||
</Project> |