-
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (31 loc) · 946 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
39
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 0 1 */3 *' # Every 3 months
env:
NET_VERSION: 8.0.204
PROJECT_PATH: 'Scr/Breadcrumb.csproj'
NUGET_PATH: './**/IeuanWalker.Maui.Breadcrumb.1.0.0.nupkg'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET ${{ env.NET_VERSION }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.NET_VERSION }}
- name: Install .NET MAUI ${{ env.NET_VERSION }}
run: dotnet workload install maui --ignore-failed-sources
- name: Restore dependencies
run: dotnet restore ${{ env.PROJECT_PATH }}
- name: Build
run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore
- uses: actions/upload-artifact@v3
with:
name: NuGet
path: ${{ env.NUGET_PATH }}