-
Notifications
You must be signed in to change notification settings - Fork 0
257 lines (168 loc) · 8.73 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
name: .NET
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
# Add NuGet Sources
- name: Create Local NuGet Directory
run: mkdir ~/nuget
- name: Add Local Nuget Source
run: dotnet nuget add source ~/nuget
- name: Add Garage Group NuGet Source
run: >
dotnet nuget add source ${{ vars.GG_NUGET_SOURCE_URL }}
-n garage
-u ${{ secrets.GG_NUGET_SOURCE_USER_NAME }}
-p ${{ secrets.GG_NUGET_SOURCE_USER_PASSWORD }}
--store-password-in-clear-text
# Api.Core.FailureCode
- name: Restore Api.Core.FailureCode
run: dotnet restore ./src/*/*/Api.Core.FailureCode.csproj
- name: Build Api.Core.FailureCode
run: dotnet build ./src/*/*/Api.Core.FailureCode.csproj --no-restore -c Release
- name: Pack Api.Core.FailureCode
run: dotnet pack ./src/*/*/Api.Core.FailureCode.csproj --no-restore -o ~/nuget -c Release
# Api.Core.EntityKey
- name: Restore Api.Core.EntityKey
run: dotnet restore ./src/*/*/Api.Core.EntityKey.csproj
- name: Build Api.Core.EntityKey
run: dotnet build ./src/*/*/Api.Core.EntityKey.csproj --no-restore -c Release
- name: Pack Api.Core.EntityKey
run: dotnet pack ./src/*/*/Api.Core.EntityKey.csproj --no-restore -o ~/nuget -c Release
# Api.Core.EntityKey.Test
- name: Test Api.Core.EntityKey.Test
run: dotnet test ./src/*/*/Api.Core.EntityKey.Test.csproj -c Release
# Api.Core.ExpandedField
- name: Restore Api.Core.ExpandedField
run: dotnet restore ./src/*/*/Api.Core.ExpandedField.csproj
- name: Build Api.Core.ExpandedField
run: dotnet build ./src/*/*/Api.Core.ExpandedField.csproj --no-restore -c Release
- name: Pack Api.Core.ExpandedField
run: dotnet pack ./src/*/*/Api.Core.ExpandedField.csproj --no-restore -o ~/nuget -c Release
# Api.Core.Transaction
- name: Restore Api.Core.Transaction
run: dotnet restore ./src/*/*/Api.Core.Transaction.csproj
- name: Build Api.Core.Transaction
run: dotnet build ./src/*/*/Api.Core.Transaction.csproj --no-restore -c Release
- name: Pack Api.Core.Transaction
run: dotnet pack ./src/*/*/Api.Core.Transaction.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.Impersonate
- name: Restore Api.Abstractions.Impersonate
run: dotnet restore ./src/*/*/Api.Abstractions.Impersonate.csproj
- name: Build Api.Abstractions.Impersonate
run: dotnet build ./src/*/*/Api.Abstractions.Impersonate.csproj --no-restore -c Release
- name: Pack Api.Abstractions.Impersonate
run: dotnet pack ./src/*/*/Api.Abstractions.Impersonate.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.WhoAmI
- name: Restore Api.Abstractions.WhoAmI
run: dotnet restore ./src/*/*/Api.Abstractions.WhoAmI.csproj
- name: Build Api.Abstractions.WhoAmI
run: dotnet build ./src/*/*/Api.Abstractions.WhoAmI.csproj --no-restore -c Release
- name: Pack Api.Abstractions.WhoAmI
run: dotnet pack ./src/*/*/Api.Abstractions.WhoAmI.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.Search
- name: Restore Api.Abstractions.Search
run: dotnet restore ./src/*/*/Api.Abstractions.Search.csproj
- name: Build Api.Abstractions.Search
run: dotnet build ./src/*/*/Api.Abstractions.Search.csproj --no-restore -c Release
- name: Pack Api.Abstractions.Search
run: dotnet pack ./src/*/*/Api.Abstractions.Search.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EntityUpdate
- name: Restore Api.Abstractions.EntityUpdate
run: dotnet restore ./src/*/*/Api.Abstractions.EntityUpdate.csproj
- name: Build Api.Abstractions.EntityUpdate
run: dotnet build ./src/*/*/Api.Abstractions.EntityUpdate.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EntityUpdate
run: dotnet pack ./src/*/*/Api.Abstractions.EntityUpdate.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EntityDelete
- name: Restore Api.Abstractions.EntityDelete
run: dotnet restore ./src/*/*/Api.Abstractions.EntityDelete.csproj
- name: Build Api.Abstractions.EntityDelete
run: dotnet build ./src/*/*/Api.Abstractions.EntityDelete.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EntityDelete
run: dotnet pack ./src/*/*/Api.Abstractions.EntityDelete.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EntityCreate
- name: Restore Api.Abstractions.EntityCreate
run: dotnet restore ./src/*/*/Api.Abstractions.EntityCreate.csproj
- name: Build Api.Abstractions.EntityCreate
run: dotnet build ./src/*/*/Api.Abstractions.EntityCreate.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EntityCreate
run: dotnet pack ./src/*/*/Api.Abstractions.EntityCreate.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EntitySetGet
- name: Restore Api.Abstractions.EntitySetGet
run: dotnet restore ./src/*/*/Api.Abstractions.EntitySetGet.csproj
- name: Build Api.Abstractions.EntitySetGet
run: dotnet build ./src/*/*/Api.Abstractions.EntitySetGet.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EntitySetGet
run: dotnet pack ./src/*/*/Api.Abstractions.EntitySetGet.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EntityGet
- name: Restore Api.Abstractions.EntityGet
run: dotnet restore ./src/*/*/Api.Abstractions.EntityGet.csproj
- name: Build Api.Abstractions.EntityGet
run: dotnet build ./src/*/*/Api.Abstractions.EntityGet.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EntityGet
run: dotnet pack ./src/*/*/Api.Abstractions.EntityGet.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.EmailSend
- name: Restore Api.Abstractions.EmailSend
run: dotnet restore ./src/*/*/Api.Abstractions.EmailSend.csproj
- name: Build Api.Abstractions.EmailSend
run: dotnet build ./src/*/*/Api.Abstractions.EmailSend.csproj --no-restore -c Release
- name: Pack Api.Abstractions.EmailSend
run: dotnet pack ./src/*/*/Api.Abstractions.EmailSend.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.FetchXml
- name: Restore Api.Abstractions.FetchXml
run: dotnet restore ./src/*/*/Api.Abstractions.FetchXml.csproj
- name: Build Api.Abstractions.FetchXml
run: dotnet build ./src/*/*/Api.Abstractions.FetchXml.csproj --no-restore -c Release
- name: Pack Api.Abstractions.FetchXml
run: dotnet pack ./src/*/*/Api.Abstractions.FetchXml.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions.ChangeSetExecute
- name: Restore Api.Abstractions.ChangeSetExecute
run: dotnet restore ./src/*/*/Api.Abstractions.ChangeSetExecute.csproj
- name: Build Api.Abstractions.ChangeSetExecute
run: dotnet build ./src/*/*/Api.Abstractions.ChangeSetExecute.csproj --no-restore -c Release
- name: Pack Api.Abstractions.ChangeSetExecute
run: dotnet pack ./src/*/*/Api.Abstractions.ChangeSetExecute.csproj --no-restore -o ~/nuget -c Release
# Api.Abstractions
- name: Restore Api.Abstractions
run: dotnet restore ./src/*/*/Api.Abstractions.csproj
- name: Build Api.Abstractions
run: dotnet build ./src/*/*/Api.Abstractions.csproj --no-restore -c Release
- name: Pack Api.Abstractions
run: dotnet pack ./src/*/*/Api.Abstractions.csproj --no-restore -o ~/nuget -c Release
# Api
- name: Restore Api
run: dotnet restore ./src/*/*/Api.csproj
- name: Build Api
run: dotnet build ./src/*/*/Api.csproj --no-restore -c Release
- name: Pack Api
run: dotnet pack ./src/*/*/Api.csproj --no-restore -o ~/nuget -c Release
# Api.Test
- name: Test Api.Test
run: dotnet test ./src/*/*/Api.Test.csproj -o ~/nuget -c Release
# Api.Impersonation
- name: Restore Api.Impersonation
run: dotnet restore ./src/*/*/Api.Impersonation.csproj
- name: Build Api.Impersonation
run: dotnet build ./src/*/*/Api.Impersonation.csproj --no-restore -c Release
- name: Pack Api.Impersonation
run: dotnet pack ./src/*/*/Api.Impersonation.csproj --no-restore -o ~/nuget -c Release
# Api.Impersonation.Test
- name: Test Api.Impersonation.Test
run: dotnet test ./src/*/*/Api.Impersonation.Test.csproj -o ~/nuget -c Release
# Push
- name: Push Packages
if: ${{ github.ref == 'refs/heads/main' }}
run: >
dotnet nuget push "../../../nuget/*.nupkg"
-s ${{ vars.GG_NUGET_SOURCE_URL }}
-k ${{ secrets.GG_NUGET_SOURCE_USER_PASSWORD }}
--skip-duplicate