-
-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (37 loc) · 1.09 KB
/
push.yml
File metadata and controls
44 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: build
on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
push:
branches:
- main
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
NuGetDirectory: ${{ github.workspace }}/nuget
defaults:
run:
shell: pwsh
jobs:
build_solution:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v5.0.0
with:
dotnet-version: |
8.x
9.x
10.x
- name: Setup NuGet
uses: nuget/setup-nuget@v2.0.1
- name: Restore NuGet packages
run: nuget restore OpenAC.Net.DFe.Core.sln
working-directory: src
- name: Build solution
run: dotnet msbuild OpenAC.Net.DFe.Core.sln -property:Configuration=Release -property:platform="Any CPU"
working-directory: src