Skip to content

Commit

Permalink
Created Build and Pack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BetimBeja committed May 9, 2021
1 parent 0d1bb7d commit 97d445c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-and-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build And Pack

on:
push:
branches:
- master
env:
BUILD_CONFIGURATION: Release

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 5.0.x

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Restore NuGet packages using dotnet
working-directory: ${{env.GITHUB_WORKSPACE}}
run: dotnet restore ${{env.SOLUTION_FILE_PATH}}

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Publish Packages
uses: actions/upload-artifact@v2
with:
name: NuGets
path: '**/XrmEntitySerializer*.nupkg'
1 change: 1 addition & 0 deletions XrmEntitySerializer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{98771E62-D312-4840-833F-DB360F83C258}"
ProjectSection(SolutionItems) = preProject
azure-pipelines.yml = azure-pipelines.yml
.github\workflows\build-and-pack.yml = .github\workflows\build-and-pack.yml
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
coverage-report.ps1 = coverage-report.ps1
coverage.ps1 = coverage.ps1
Expand Down

0 comments on commit 97d445c

Please sign in to comment.