-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.07 KB
/
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
39
40
41
42
43
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Build
on:
push:
branches:
- main
paths-ignore:
- "README.md"
pull_request:
workflow_dispatch:
permissions:
packages: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
project: ["./src/App/", "./src/GeniusService/", "./src/WebApp/" ]
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Configure 'smalls1652-github' NuGet feed
run: dotnet nuget update source smalls1652-github --username "${{ github.repository_owner }}" --password "${{ secrets.GITHUB_TOKEN }}" --store-password-in-clear-text
- name: Run 'dotnet restore'
run: dotnet restore
- name: Run 'dotnet build'
run: dotnet build ${{ matrix.project }} --configuration "Release"