-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.1 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
name: "Build Main"
on:
workflow_dispatch:
# push:
# branches:
# - main
# paths:
# - 'DevCraftAspire.ApiService/**/*'
# - 'DevCraftAspire.AppHost/**/*'
# - 'DevCraftAspire.ServiceDefaults/**/*'
# - 'DevCraftAspire.Web/**/*'
# - '.github/workflows/build.yml'
jobs:
build_app:
runs-on: ubuntu-latest
env:
NUGET_CONF_PATH: './nuget.config'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install .NET Aspire workload
run: dotnet workload install aspire --ignore-failed-sources
- name: Update NuGet Package Sources
run: dotnet nuget update source "TelerikServer" -s "https://nuget.telerik.com/v3/index.json" -u 'api-key' -p ${{secrets.TELERIK_NUGET_KEY}} --configfile ${{env.NUGET_CONF_PATH}} --store-password-in-clear-text
- name: Restore NuGet packages
run: dotnet restore --configfile ${{env.NUGET_CONF_PATH}}
- name: Build solution
run: dotnet build -c Release --no-restore