@@ -23,10 +23,10 @@ jobs:
23
23
steps :
24
24
25
25
- name : Checkout source code
26
- uses : actions/checkout@v3
26
+ uses : actions/checkout@v4
27
27
28
28
- name : Setup .NET
29
- uses : actions/setup-dotnet@v3
29
+ uses : actions/setup-dotnet@v4
30
30
with :
31
31
global-json-file : src/Templates/Boilerplate/Bit.Boilerplate/global.json
32
32
@@ -35,18 +35,19 @@ jobs:
35
35
cd src/Templates/Boilerplate && dotnet build -c Release
36
36
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
37
37
dotnet new install Bit.Boilerplate.0.0.0.nupkg
38
- cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin
38
+ cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights
39
39
40
40
- name : Update appsettings.json api server address
41
- uses : microsoft /variable-substitution@v1
41
+ uses : devops-actions /variable-substitution@v1.2
42
42
with :
43
43
files : ' AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
44
44
env :
45
45
ApiServerAddress : ${{ env.API_SERVER_ADDRESS }}
46
+ ApplicationInsights.ConnectionString : ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
46
47
47
- - uses : actions/setup-node@v3
48
+ - uses : actions/setup-node@v4
48
49
with :
49
- node-version : 18
50
+ node-version : 20
50
51
51
52
- name : Install wasm
52
53
run : cd src && dotnet workload install wasm-tools wasm-experimental
67
68
run : dotnet publish AdminPanel/src/AdminPanel.Server/AdminPanel.Server.csproj -c Release -p:PwaEnabled=true --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}"
68
69
69
70
- name : Upload server artifact
70
- uses : actions/upload-artifact@v3
71
+ uses : actions/upload-artifact@v4
71
72
with :
72
73
name : server-bundle
73
74
path : ${{env.DOTNET_ROOT}}/server
83
84
steps :
84
85
85
86
- name : Retrieve server bundle
86
- uses : actions/download-artifact@v2
87
+ uses : actions/download-artifact@v4
87
88
with :
88
89
name : server-bundle
89
90
92
93
rm IdentityCertificate.pfx
93
94
94
95
- name : Extract identity certificate from env
95
- uses : timheuer/base64-to-file@v1
96
+ uses : timheuer/base64-to-file@v1.2
96
97
with :
97
98
fileDir : ' ./'
98
99
fileName : ' IdentityCertificate.pfx'
@@ -120,31 +121,32 @@ jobs:
120
121
steps :
121
122
122
123
- name : Checkout source code
123
- uses : actions/checkout@v3
124
+ uses : actions/checkout@v4
124
125
125
126
- name : Setup .NET
126
- uses : actions/setup-dotnet@v3
127
+ uses : actions/setup-dotnet@v4
127
128
with :
128
129
global-json-file : src\Templates\Boilerplate\Bit.Boilerplate\global.json
129
130
130
- - uses : actions/setup-node@v3
131
+ - uses : actions/setup-node@v4
131
132
with :
132
- node-version : 18
133
+ node-version : 20
133
134
134
135
- name : Create project from Boilerplate
135
136
run : |
136
137
cd src\Templates\Boilerplate && dotnet build -c Release
137
138
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
138
139
dotnet new install Bit.Boilerplate.0.0.0.nupkg
139
- cd ..\..\..\ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --windows
140
+ cd ..\..\..\ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --windows --appInsights
140
141
141
142
- name : Update appsettings.json api server address
142
- uses : microsoft /variable-substitution@v1
143
+ uses : devops-actions /variable-substitution@v1.2
143
144
with :
144
145
files : ' AdminPanel\src\Client\AdminPanel.Client.Core\appsettings.json'
145
146
env :
146
147
ApiServerAddress : ${{ env.API_SERVER_ADDRESS }}
147
148
WindowsUpdateSettings.FilesUrl : https://windows-adminpanel.bitplatform.dev
149
+ ApplicationInsights.ConnectionString : ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
148
150
149
151
- name : Generate CSS/JS files
150
152
run : dotnet build AdminPanel\src\Client\AdminPanel.Client.Core\AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
@@ -165,7 +167,7 @@ jobs:
165
167
echo A | xcopy .\bin\publish-x64 .\publish-result /s /e /h
166
168
echo A | xcopy .\bin\publish .\publish-result /s /e /h
167
169
dotnet tool restore
168
- dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.2 -x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
170
+ dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.4 -x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
169
171
170
172
- name : Upload artifact
171
173
uses : actions/upload-artifact@v2
@@ -180,10 +182,10 @@ jobs:
180
182
steps :
181
183
182
184
- name : Checkout source code
183
- uses : actions/checkout@v3
185
+ uses : actions/checkout@v4
184
186
185
187
- name : Setup .NET
186
- uses : actions/setup-dotnet@v3
188
+ uses : actions/setup-dotnet@v4
187
189
with :
188
190
global-json-file : src/Templates/Boilerplate/Bit.Boilerplate/global.json
189
191
@@ -192,25 +194,26 @@ jobs:
192
194
cd src/Templates/Boilerplate && dotnet build -c Release
193
195
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
194
196
dotnet new install Bit.Boilerplate.0.0.0.nupkg
195
- cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin
197
+ cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights
196
198
197
- - uses : actions/setup-node@v3
199
+ - uses : actions/setup-node@v4
198
200
with :
199
- node-version : 18
201
+ node-version : 20
200
202
201
203
- name : Extract Android signing key from env
202
- uses : timheuer/base64-to-file@v1
204
+ uses : timheuer/base64-to-file@v1.2
203
205
with :
204
206
fileDir : ' ./AdminPanel/src/Client/AdminPanel.Client.Maui/'
205
207
fileName : ' AdminPanel.keystore'
206
208
encodedString : ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }}
207
209
208
210
- name : Update appsettings.json api server address
209
- uses : microsoft /variable-substitution@v1
211
+ uses : devops-actions /variable-substitution@v1.2
210
212
with :
211
213
files : ' AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
212
214
env :
213
215
ApiServerAddress : ${{ env.API_SERVER_ADDRESS }}
216
+ ApplicationInsights.ConnectionString : ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
214
217
215
218
- name : Set android universal link
216
219
run : sed -i 's/bp.bitplatform.dev/adminpanel.bitplatform.dev/g' AdminPanel/src/Client/AdminPanel.Client.Maui/Platforms/Android/MainActivity.cs
@@ -222,7 +225,9 @@ jobs:
222
225
run : ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
223
226
224
227
- name : Generate CSS/JS files
225
- run : dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
228
+ run : |
229
+ dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
230
+ dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
226
231
227
232
- name : Build aab
228
233
run : dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -c Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="AdminPanel.keystore" -p:AndroidSigningKeyAlias=bitplatform -p:AndroidSigningKeyPass="${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}" -p:AndroidSigningStorePass="${{ secrets.ANDROID_RELEASE_SIGNING_PASSWORD }}" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-android
@@ -235,39 +240,40 @@ jobs:
235
240
236
241
build_blazor_hybrid_ios :
237
242
name : build blazor hybrid (iOS-macOS)
238
- runs-on : macos-13
243
+ runs-on : macos-14
239
244
240
245
steps :
241
246
242
247
- name : Checkout source code
243
- uses : actions/checkout@v3
248
+ uses : actions/checkout@v4
244
249
245
250
- name : Setup .NET
246
- uses : actions/setup-dotnet@v3
251
+ uses : actions/setup-dotnet@v4
247
252
with :
248
253
global-json-file : src/Templates/Boilerplate/Bit.Boilerplate/global.json
249
254
250
255
- uses : maxim-lobanov/setup-xcode@v1
251
256
with :
252
- xcode-version : ' 15'
257
+ xcode-version : ' 15.3 '
253
258
254
- - uses : actions/setup-node@v3
259
+ - uses : actions/setup-node@v4
255
260
with :
256
- node-version : 18
261
+ node-version : 20
257
262
258
263
- name : Create project from Boilerplate
259
264
run : |
260
265
cd src/Templates/Boilerplate && dotnet build -c Release
261
266
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
262
267
dotnet new install Bit.Boilerplate.0.0.0.nupkg
263
- cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin
268
+ cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights
264
269
265
270
- name : Update appsettings.json api server address
266
- uses : microsoft /variable-substitution@v1
271
+ uses : devops-actions /variable-substitution@v1.2
267
272
with :
268
273
files : ' AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json'
269
274
env :
270
275
ApiServerAddress : ${{ env.API_SERVER_ADDRESS }}
276
+ ApplicationInsights.ConnectionString : ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
271
277
272
278
- name : Set iOS universal link
273
279
run : brew install gnu-sed && gsed -i 's/bp.bitplatform.dev/adminpanel.bitplatform.dev/g' AdminPanel/src/Client/AdminPanel.Client.Maui/Platforms/iOS/Entitlements.plist
@@ -276,14 +282,14 @@ jobs:
276
282
run : cd src && dotnet workload install maui
277
283
278
284
- name : Extract iOS code signing certificate from env
279
- uses : timheuer/base64-to-file@v1
285
+ uses : timheuer/base64-to-file@v1.2
280
286
with :
281
287
fileDir : ' ./'
282
288
fileName : ' DistributionCert.p12'
283
289
encodedString : ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_BASE64 }}
284
290
285
291
- name : Import Code-Signing Certificates
286
- uses : Apple-Actions /import-codesign-certs@v1
292
+ uses : apple-actions /import-codesign-certs@v2
287
293
with :
288
294
p12-filepath : ' ./DistributionCert.p12'
289
295
p12-password : ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_PASSWORD }}
@@ -297,7 +303,9 @@ jobs:
297
303
api-private-key : ${{ secrets.APPSTORE_API_KEY_PRIVATE_KEY }}
298
304
299
305
- name : Generate CSS/JS files
300
- run : dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
306
+ run : |
307
+ dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
308
+ dotnet build AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore
301
309
302
310
- name : Build ipa
303
311
run : dotnet publish AdminPanel/src/Client/AdminPanel.Client.Maui/AdminPanel.Client.Maui.csproj -p:RuntimeIdentifier=ios-arm64 -c Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="AdminPanel" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-ios
0 commit comments