Merge pull request #443 from nvisage-gf/pr/SystemServiceModelSyndicat… #265
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
name: Articulate Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
Solution_File: src\Articulate.sln | |
Code_CSProj_File: src\Articulate\Articulate.csproj | |
Web_Proj_Folder: src\Articulate.Web | |
Release_Folder: build\Release | |
Build_Folder: build | |
Configuration: Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: dotnet/nbgv@master | |
with: | |
setAllVars: true | |
- run: echo "NBGV_SemVer2 $NBGV_SemVer2" | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- uses: nuget/setup-nuget@v1 | |
with: | |
nuget-version: 'latest' | |
- name: Nuget Restore | |
run: nuget restore $env:Solution_File | |
- name: MSBuild Clean | |
run: msbuild $env:Solution_File /p:Configuration=${{ env.Configuration }} /t:Clean | |
- name: MSBuild Build | |
run: msbuild $env:Solution_File /p:Configuration=${{ env.Configuration }} | |
- name: Dotnet Pack | |
run: dotnet pack ${{ env.Code_CSProj_File }} --output ${{ env.Release_Folder }} --configuration ${{ env.Configuration }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Articulate.${{ env.NBGV_SemVer2 }} | |
path: ${{ env.Release_Folder }}/Articulate.* |