-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.25 KB
/
nuget.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
# https://github.com/alirezanet/publish-nuget
name: Build, test & publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: idee5.Globalization/idee5.Globalization.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NO_BUILD: true
- name: Publish EFCore implementation
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: idee5.Globalization.EFCore/idee5.Globalization.EFCore.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NO_BUILD: true
- name: Publish web api
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: idee5.Globalization.WebApi/idee5.Globalization.WebApi.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NO_BUILD: true