-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yml
38 lines (28 loc) · 913 Bytes
/
build.yml
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
name: Build
on:
workflow_dispatch:
push:
branches:
- main
env:
DOTNET_VERSION="9.x"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ProjectSetup
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore
run: dotnet restore ProjectSetup.sln
- name: Build
run: dotnet build ProjectSetup.sln --configuration Release --no-restore
- name: Test
run: dotnet test ProjectSetup.sln --configuration Release --no-restore --no-build
- name: Publish
run: dotnet publish ProjectSetup.sln --configuration Release --no-restore --no-build