-
Notifications
You must be signed in to change notification settings - Fork 41
62 lines (61 loc) · 5.24 KB
/
dotnet.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
58
59
60
61
62
name: .NET
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -nowarn:CS1591 -p:Version=4.0.0.${{github.run_number}}
- name: Pack
run: |
dotnet pack -c Release src/Wodsoft.ComBoost/Wodsoft.ComBoost.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.AspNetCore/Wodsoft.ComBoost.AspNetCore.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Core/Wodsoft.ComBoost.Core.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Data/Wodsoft.ComBoost.Data.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Data.Core/Wodsoft.ComBoost.Data.Core.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Data.Distributed/Wodsoft.ComBoost.Data.Distributed.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Distributed/Wodsoft.ComBoost.Distributed.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Distributed.CAP/Wodsoft.ComBoost.Distributed.CAP.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Distributed.RabbitMQ/Wodsoft.ComBoost.Distributed.RabbitMQ.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.EntityFramework/Wodsoft.ComBoost.EntityFramework.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.EntityFrameworkCore/Wodsoft.ComBoost.EntityFrameworkCore.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Mock/Wodsoft.ComBoost.Mock.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Mvc/Wodsoft.ComBoost.Mvc.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Mvc.Data/Wodsoft.ComBoost.Mvc.Data.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Security/Wodsoft.ComBoost.Security.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Grpc/Wodsoft.ComBoost.Grpc.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Grpc.AspNetCore/Wodsoft.ComBoost.Grpc.AspNetCore.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Grpc.Client/Wodsoft.ComBoost.Grpc.Client.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation/Wodsoft.ComBoost.Aggregation.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Caching/Wodsoft.ComBoost.Aggregation.Caching.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Caching.Data/Wodsoft.ComBoost.Aggregation.Caching.Data.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Core/Wodsoft.ComBoost.Aggregation.Core.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Data/Wodsoft.ComBoost.Aggregation.Data.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Json/Wodsoft.ComBoost.Aggregation.Json.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.Mvc/Wodsoft.ComBoost.Aggregation.Mvc.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
dotnet pack -c Release src/Wodsoft.ComBoost.Aggregation.NewtonsoftJson/Wodsoft.ComBoost.Aggregation.NewtonsoftJson.csproj -p:Version=4.0.0.${{github.run_number}}-alpha -o nupkgs --no-build
- name: Publish package
run: |
cd nupkgs
dotnet nuget push "*.symbols.nupkg" -k ${{secrets.MYGET_TOKEN}} -s https://www.myget.org/F/comboost/api/v2/package