-
Notifications
You must be signed in to change notification settings - Fork 8
125 lines (116 loc) · 8.2 KB
/
dotnet-core.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
#- name: Install dependencies Nike.Api
# run: dotnet restore ./Nike.Api/Nike.Api.csproj
#- name: Build Nike.Api
# run: dotnet pack ./Nike.Api/Nike.Api.csproj -c Release -o ./nuget
#- name: Install dependencies Nike.CustomerManagement.Tests.Units
# run: dotnet restore ./Nike.CustomerManagement.Tests.Units/Nike.CustomerManagement.Tests.Units.csproj
#- name: Build Nike.CustomerManagement.Tests.Units
# run: dotnet pack ./Nike.CustomerManagement.Tests.Units/Nike.CustomerManagement.Tests.Units.csproj -c Release -o ./nuget
#- name: Install dependencies Nike.CustomerManagement
# run: dotnet restore ./Nike.CustomerManagement/Nike.CustomerManagement.csproj
#- name: Build Nike.CustomerManagement
# run: dotnet pack ./Nike.CustomerManagement/Nike.CustomerManagement.csproj -c Release -o ./nuget
- name: Install dependencies Nike.EntityFramework.Microsoft.DependencyInjection
run: dotnet restore ./Nike.EntityFramework.Microsoft.DependencyInjection/Nike.EntityFramework.Microsoft.DependencyInjection.csproj
- name: Build Nike.EntityFramework.Microsoft.DependencyInjection
run: dotnet pack ./Nike.EntityFramework.Microsoft.DependencyInjection/Nike.EntityFramework.Microsoft.DependencyInjection.csproj -c Release -o ./nuget
- name: Install dependencies Nike.EntityFramework
run: dotnet restore ./Nike.EntityFramework/Nike.EntityFramework.csproj
- name: Build Nike.EntityFramework
run: dotnet pack ./Nike.EntityFramework/Nike.EntityFramework.csproj -c Release -o ./nuget
- name: Install dependencies Nike.EventBus.Kafka
run: dotnet restore ./Nike.EventBus.Kafka/Nike.EventBus.Kafka.csproj
- name: Build Nike.EventBus.Kafka
run: dotnet pack ./Nike.EventBus.Kafka/Nike.EventBus.Kafka.csproj -c Release -o ./nuget
- name: Install dependencies Nike.EventBus.RabbitMQ
run: dotnet restore ./Nike.EventBus.RabbitMQ/Nike.EventBus.RabbitMQ.csproj
- name: Build Nike.EventBus.RabbitMQ
run: dotnet pack ./Nike.EventBus.RabbitMQ/Nike.EventBus.RabbitMQ.csproj -c Release -o ./nuget
- name: Install dependencies Nike.EventBus
run: dotnet restore ./Nike.EventBus/Nike.EventBus.csproj
- name: Build Nike.EventBus
#run: dotnet build --configuration Release --no-restore ./Nike.EventBus/Nike.EventBus.csproj
run: dotnet pack ./Nike.EventBus/Nike.EventBus.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Exceptions
run: dotnet restore ./Nike.Exceptions/Nike.Exceptions.csproj
- name: Build Nike.Exceptions
run: dotnet pack ./Nike.Exceptions/Nike.Exceptions.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Framework.Domain
run: dotnet restore ./Nike.Framework.Domain/Nike.Framework.Domain.csproj
- name: Build Nike.Framework.Domain
run: dotnet pack ./Nike.Framework.Domain/Nike.Framework.Domain.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Mediator
run: dotnet restore ./Nike.Mediator/Nike.Mediator.csproj
- name: Build Nike.Mediator
run: dotnet pack ./Nike.Mediator/Nike.Mediator.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Redis.Microsoft.DependencyInjection
run: dotnet restore ./Nike.Redis.Microsoft.DependencyInjection/Nike.Redis.Microsoft.DependencyInjection.csproj
- name: Build Nike.Redis.Microsoft.DependencyInjection
run: dotnet pack ./Nike.Redis.Microsoft.DependencyInjection/Nike.Redis.Microsoft.DependencyInjection.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Swagger
run: dotnet restore ./Nike.Swagger/Nike.Swagger.csproj
- name: Build Nike.Swagger
run: dotnet pack ./Nike.Swagger/Nike.Swagger.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Web.DependencyInjection
run: dotnet restore ./Nike.Web.DependencyInjection/Nike.Web.DependencyInjection.csproj
- name: Build Nike.Web.DependencyInjection
run: dotnet pack ./Nike.Web.DependencyInjection/Nike.Web.DependencyInjection.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Web
run: dotnet restore ./Nike.Web/Nike.Web.csproj
- name: Build Nike.Web
run: dotnet pack ./Nike.Web/Nike.Web.csproj -c Release -o ./nuget
- name: Install dependencies Nike.Logging
run: dotnet restore ./Nike.Logging/Nike.Logging.csproj
- name: Build Nike.Logging
run: dotnet pack ./Nike.Logging/Nike.Logging.csproj -c Release -o ./nuget
- name: Build Nike.EventBus.Mqtt
run: dotnet pack ./Nike.EventBus.Mqtt/Nike.EventBus.Mqtt.csproj -c Release -o ./nuget
- name: Build Nike.EventBus.Redis
run: dotnet pack ./Nike.EventBus.Redis/Nike.EventBus.Redis.csproj -c Release -o ./nuget
- name: ls
run: ls -lah ./nuget
- name: Deploy Nike.EntityFramework
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EntityFramework*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EntityFramework.Microsoft.DependencyInjection
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EntityFramework.Microsoft.DependencyInjection*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EventBus
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EventBus*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EventBus.Kafka
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EventBus.Kafka*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EventBus.RabbitMQ
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EventBus.RabbitMQ*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Exceptions
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Exceptions*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Framework.Domain
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Framework.Domain*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Mediator
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Mediator*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Redis.Microsoft.DependencyInjection
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Redis.Microsoft.DependencyInjection*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Swagger
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Swagger*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Web
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Web*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Web.DependencyInjection
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Web.DependencyInjection*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.Logging
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.Logging*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EventBus.Mqtt
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EventBus.Mqtt*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Deploy Nike.EventBus.Redis
run: dotnet nuget push /home/runner/work/Nike/Nike/nuget/Nike.EventBus.Redis*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate