-
Notifications
You must be signed in to change notification settings - Fork 37
57 lines (53 loc) · 2.55 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Balea continous Deployment
on:
push:
tags:
- v*
jobs:
build:
env:
BUILD_CONFIG: Release
name: Build
runs-on: ubuntu-latest
services:
sql-server:
image: mcr.microsoft.com/mssql/server
env:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Password12!
ports:
- 5433:1433
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core SDK 6.0.424
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.424
- name: Setup .NET Core SDK 8.0.303
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.303
- name: dotnet build
run: dotnet build Balea.sln -c $BUILD_CONFIG
- name: dotnet test [FunctionalTests]
run: dotnet test ./test/FunctionalTests/FunctionalTests.csproj -c $BUILD_CONFIG --no-build
- name: dotnet pack [Balea]
run: dotnet pack ./src/Balea/Balea.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts
- name: dotnet pack [Balea.Configuration.Store]
run: dotnet pack ./src/Balea.Configuration.Store/Balea.Configuration.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts
- name: dotnet pack [Balea.EntityFrameworkCore.Store]
run: dotnet pack ./src/Balea.EntityFrameworkCore.Store/Balea.EntityFrameworkCore.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts
- name: dotnet pack [Balea.Api.Store]
run: dotnet pack ./src/Balea.Api.Store/Balea.Api.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts
- name: setup nuget
uses: NuGet/[email protected]
with:
nuget-version: latest
- name: Publish Balea nuget
run: dotnet nuget push ./artifacts/Balea.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish Configuration Store nuget
run: dotnet nuget push ./artifacts/Balea.Configuration.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish EntityFramework Store nuget
run: dotnet nuget push ./artifacts/Balea.EntityFrameworkCore.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish Api Store nuget
run: dotnet nuget push ./artifacts/Balea.Api.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate