-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (26 loc) · 1.01 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
name: .NET
on:
push:
branches: [ "main", "preview" ]
pull_request:
branches: [ "main", "preview" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./src/Pure.Blazor.Components
- name: Build
run: dotnet build ./src/Pure.Blazor.Components --no-restore
- name: Test
run: dotnet test ./src/Pure.Blazor.Components --no-build --verbosity normal
- name: Build AspNetCore Integration Package
run: dotnet build ./src/Pure.Blazor.Components.AspNetCore
- name: Publish to NuGet
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/preview' }}
run: dotnet nuget push --skip-duplicate --api-key ${{secrets.PB_COMPONENTS_NUGET_KEY}} --source 'https://api.nuget.org/v3/index.json' ${{github.workspace}}/src/**/PureBlazor.Components.*.nupkg