Skip to content

Commit 01c4de0

Browse files
authored
Merge pull request #4238 from bitfoundation/develop
Version 4.9.9 (#4237)
2 parents 1ee6df1 + 11dcc82 commit 01c4de0

File tree

1,083 files changed

+38484
-26742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,083 files changed

+38484
-26742
lines changed

.github/workflows/adminpanel.cd.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: AdminPanel CD
55
env:
66
WEB_APP_DEPLOYMENT_TYPE: 'DefaultDeploymentType'
77
API_SERVER_ADDRESS: 'https://adminpanel.bitplatform.dev/api/'
8-
APP_SERVICE_NAME: 'app-service-ad-test'
8+
APP_SERVICE_NAME: 'bit-adminpanel'
99

1010
on:
1111
workflow_dispatch:
@@ -29,10 +29,7 @@ jobs:
2929
- name: Setup .NET
3030
uses: actions/setup-dotnet@v3
3131
with:
32-
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/src/global.json
33-
34-
- name: Install wasm-tools
35-
run: dotnet workload install wasm-tools
32+
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
3633

3734
- name: Switch to blazor web assembly
3835
run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Templates/AdminPanel/Bit.AdminPanel/src/Client/Web/AdminPanel.Client.Web.csproj
@@ -45,7 +42,7 @@ jobs:
4542
with:
4643
files: 'src/Templates/AdminPanel/Bit.AdminPanel/src/Client/Shared/appsettings.json'
4744
env:
48-
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
45+
ApiServerAddress: 'api/'
4946

5047
- name: Build (To generate CSS/JS files)
5148
run: dotnet build src/Templates/AdminPanel/Bit.AdminPanel/src/Server/Api/AdminPanel.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release -p:MultilingualEnabled=true
@@ -106,15 +103,15 @@ jobs:
106103
- name: Setup .NET
107104
uses: actions/setup-dotnet@v3
108105
with:
109-
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/src/global.json
106+
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
110107

111108
- name: Update appsettings.json api server address
112109
uses: microsoft/variable-substitution@v1
113110
with:
114111
files: 'src/Templates/AdminPanel/Bit.AdminPanel/src/Client/Shared/appsettings.json'
115112
env:
116113
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
117-
114+
118115
- name: Install Maui
119116
run: dotnet workload install maui
120117

@@ -145,7 +142,7 @@ jobs:
145142
- name: Setup .NET
146143
uses: actions/setup-dotnet@v3
147144
with:
148-
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/src/global.json
145+
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
149146

150147
- name: Extract Android signing key from env
151148
uses: timheuer/base64-to-file@v1
@@ -160,7 +157,7 @@ jobs:
160157
files: 'src/Templates/AdminPanel/Bit.AdminPanel/src/Client/Shared/appsettings.json'
161158
env:
162159
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
163-
160+
164161
- name: Install Maui
165162
run: dotnet workload install maui
166163

@@ -194,15 +191,18 @@ jobs:
194191
- name: Setup .NET
195192
uses: actions/setup-dotnet@v3
196193
with:
197-
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/src/global.json
194+
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
198195

199196
- name: Update appsettings.json api server address
200197
uses: microsoft/variable-substitution@v1
201198
with:
202199
files: 'src/Templates/AdminPanel/Bit.AdminPanel/src/Client/Shared/appsettings.json'
203200
env:
204201
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
205-
202+
203+
- name: Install Maui
204+
run: dotnet workload install maui
205+
206206
- name: Restore workloads
207207
run: dotnet workload restore src/Templates/AdminPanel/Bit.AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-maccatalyst
208208

.github/workflows/bit.ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
dotnet-version: 7.0.x
2525
include-prerelease: true
2626

27-
- name: Install wasm-tools
28-
run: dotnet workload install wasm-tools
27+
- name: Setup .NET 8.0.x
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 8.0.x
31+
include-prerelease: true
2932

3033
- name: Restore prerelease
3134
run: dotnet restore src/Bit-CI-release.sln
@@ -54,9 +57,12 @@ jobs:
5457
with:
5558
dotnet-version: 7.0.x
5659
include-prerelease: true
57-
58-
- name: Install wasm-tools
59-
run: dotnet workload install wasm-tools
60+
61+
- name: Setup .NET 8.0.x
62+
uses: actions/setup-dotnet@v1
63+
with:
64+
dotnet-version: 8.0.x
65+
include-prerelease: true
6066

6167
- name: Restore
6268
run: dotnet restore src/Bit-CI.sln
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
name: Blazor UI Demo CD
2+
3+
# Project templates come equipped with CI/CD for both Azure DevOps and GitHub, providing you with a hassle-free way to get started with your new project. It is important to note that you should not depend on the contents of this file. More info at https://bitplatform.dev/admin-panel/dev-ops
4+
5+
env:
6+
WEB_APP_DEPLOYMENT_TYPE: 'SSR'
7+
API_SERVER_ADDRESS: 'https://components.bitplatform.dev/api/'
8+
APP_SERVICE_NAME: 'bit-components'
9+
10+
on:
11+
workflow_dispatch:
12+
push:
13+
branches: [ "main" ]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
20+
build_blazor_api_wasm:
21+
name: build blazor api + web assembly
22+
runs-on: windows-latest
23+
24+
steps:
25+
26+
- name: Checkout source code
27+
uses: actions/checkout@v3
28+
29+
- name: Setup .NET
30+
uses: actions/setup-dotnet@v3
31+
with:
32+
global-json-file: src/BlazorUI/Demo/global.json
33+
34+
- name: Switch to blazor web assembly
35+
run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj
36+
37+
- name: Switch to blazor web assembly
38+
shell: pwsh
39+
run: (Get-Content src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj) -replace 'Microsoft.NET.Sdk.Web', 'Microsoft.NET.Sdk.BlazorWebAssembly' | Set-Content src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj
40+
41+
- name: Restore workloads
42+
run: dotnet workload restore src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}"
43+
44+
- name: Update appsettings.json api server address
45+
uses: microsoft/variable-substitution@v1
46+
with:
47+
files: 'src/BlazorUI/Demo/Client/Shared/appsettings.json'
48+
env:
49+
ApiServerAddress: 'api/'
50+
51+
- name: Build (To generate CSS/JS files)
52+
run: dotnet build src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj -m:1 -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release
53+
54+
- name: Publish
55+
run: dotnet publish src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj -m:1 -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release --self-contained -r linux-x64 -o api-web
56+
57+
- name: Upload api-web artifact
58+
uses: actions/upload-artifact@v3
59+
with:
60+
name: api-web-bundle
61+
path: api-web
62+
63+
deploy_blazor_api_wasm:
64+
name: deploy blazor api + web assembly
65+
needs: build_blazor_api_wasm
66+
runs-on: ubuntu-latest
67+
environment:
68+
name: 'production'
69+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
70+
71+
steps:
72+
73+
- name: Retrieve api-web bundle
74+
uses: actions/download-artifact@v2
75+
with:
76+
name: api-web-bundle
77+
78+
- name: Deploy to Azure Web App
79+
id: deploy-to-webapp
80+
uses: azure/webapps-deploy@v2
81+
with:
82+
app-name: ${{ env.APP_SERVICE_NAME }}
83+
slot-name: 'production'
84+
publish-profile: ${{ secrets.COMPONENTS_AZURE_APP_SERVICE_PUBLISH_PROFILE }}
85+
package: .
86+
87+
build_blazor_hybrid_windows:
88+
name: build blazor hybrid (windows)
89+
runs-on: windows-latest
90+
91+
steps:
92+
93+
- name: Checkout source code
94+
uses: actions/checkout@v3
95+
96+
- name: Setup .NET
97+
uses: actions/setup-dotnet@v3
98+
with:
99+
global-json-file: src/BlazorUI/Demo/global.json
100+
101+
- name: Update appsettings.json api server address
102+
uses: microsoft/variable-substitution@v1
103+
with:
104+
files: 'src/BlazorUI/Demo/Client/Shared/appsettings.json'
105+
env:
106+
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
107+
108+
- name: Install Maui
109+
run: dotnet workload install maui
110+
111+
- name: Restore workloads
112+
run: dotnet workload restore src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-windows10.0.19041.0
113+
114+
- name: Build (To generate CSS/JS files)
115+
run: dotnet build src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -f net7.0-windows10.0.19041.0
116+
117+
- name: Build exe
118+
run: dotnet build src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:GenerateAppxPackageOnBuild=false -p:RuntimeIdentifier=win10-x86 -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net7.0-windows10.0.19041.0
119+
120+
- name: Upload artifact
121+
uses: actions/upload-artifact@v2
122+
with:
123+
name: win-exe-bundle
124+
path: src/BlazorUI/Demo/Client/App/bin/release/net7.0-windows10.0.19041.0/win10-x86
125+
126+
build_blazor_hybrid_android:
127+
name: build blazor hybrid (android)
128+
runs-on: windows-latest
129+
130+
steps:
131+
132+
- name: Checkout source code
133+
uses: actions/checkout@v3
134+
135+
- name: Setup .NET
136+
uses: actions/setup-dotnet@v3
137+
with:
138+
global-json-file: src/BlazorUI/Demo/global.json
139+
140+
- name: Extract Android signing key from env
141+
uses: timheuer/base64-to-file@v1
142+
with:
143+
fileDir: './src/BlazorUI/Demo/Client/App/'
144+
fileName: 'BitBlazorUIDemo.keystore'
145+
encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }}
146+
147+
- name: Update appsettings.json api server address
148+
uses: microsoft/variable-substitution@v1
149+
with:
150+
files: 'src/BlazorUI/Demo/Client/Shared/appsettings.json'
151+
env:
152+
ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
153+
154+
- name: Install Maui
155+
run: dotnet workload install maui
156+
157+
- name: Restore workloads
158+
run: dotnet workload restore src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -p:BlazorMode=BlazorHybrid -f net7.0-android
159+
160+
- name: Build (To generate CSS/JS files)
161+
run: dotnet build src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:RunAOTCompilation=false -f net7.0-android
162+
163+
- name: Build aab
164+
run: dotnet build src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="BitBlazorUIDemo.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 }}" -f net7.0-android
165+
166+
- name: Build apk
167+
run: dotnet build src/BlazorUI/Demo/Client/App/Bit.BlazorUI.Demo.Client.App.csproj -m:1 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="BitBlazorUIDemo.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 }}" -f net7.0-android
168+
169+
- name: Upload artifact
170+
uses: actions/upload-artifact@v2
171+
with:
172+
name: android-bundle
173+
path: src/BlazorUI/Demo/Client/App/bin/release/net7.0-android/*-Signed.*

.github/workflows/nuget.org.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ jobs:
2626
uses: actions/setup-dotnet@v1
2727
with:
2828
dotnet-version: 6.0.x
29-
29+
3030
- name: Setup .NET 7.0.x
3131
uses: actions/setup-dotnet@v1
3232
with:
3333
dotnet-version: 7.0.x
3434
include-prerelease: true
35+
36+
- name: Setup .NET 8.0.x
37+
uses: actions/setup-dotnet@v1
38+
with:
39+
dotnet-version: 8.0.x
40+
include-prerelease: true
3541

3642
- name: dotnet restore BlazorUI
3743
run: dotnet restore src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Platform Website CD
2+
3+
env:
4+
WEB_APP_DEPLOYMENT_TYPE: 'SSR'
5+
APP_SERVICE_NAME: 'bitplatform'
6+
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches: [ "main" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
17+
build_blazor_api_wasm:
18+
name: build blazor api + web assembly
19+
runs-on: windows-latest
20+
21+
steps:
22+
23+
- name: Checkout source code
24+
uses: actions/checkout@v3
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v3
28+
with:
29+
global-json-file: src/Websites/Platform/global.json
30+
31+
- name: Switch to blazor web assembly
32+
shell: pwsh
33+
run: (Get-Content src/Websites/Platform/Bit.Websites.Platform/Web/Bit.Websites.Platform.Web.csproj) -replace 'Microsoft.NET.Sdk.Web', 'Microsoft.NET.Sdk.BlazorWebAssembly' | Set-Content src/Websites/Platform/Bit.Websites.Platform/Web/Bit.Websites.Platform.Web.csproj
34+
35+
- name: Restore workloads
36+
run: dotnet workload restore src/Websites/Platform/Bit.Websites.Platform/Web/Bit.Websites.Platform.Web.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}"
37+
38+
- name: Update appsettings.json api server address
39+
uses: microsoft/variable-substitution@v1
40+
with:
41+
files: 'src/Websites/Platform/Bit.Websites.Platform/Web/appsettings.json'
42+
env:
43+
ApiServerAddress: 'api/'
44+
45+
- name: Build (To generate CSS/JS files)
46+
run: dotnet build src/Websites/Platform/Bit.Websites.Platform/Api/Bit.Websites.Platform.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release
47+
48+
- name: Publish
49+
run: dotnet publish src/Websites/Platform/Bit.Websites.Platform/Api/Bit.Websites.Platform.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" -p:Configuration=Release --self-contained -r linux-x64 -o api-web
50+
51+
- name: Upload api-web artifact
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: api-web-bundle
55+
path: api-web
56+
57+
deploy_blazor_api_wasm:
58+
name: deploy blazor api + web assembly
59+
needs: build_blazor_api_wasm
60+
runs-on: ubuntu-latest
61+
environment:
62+
name: 'production'
63+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
64+
65+
steps:
66+
67+
- name: Retrieve api-web bundle
68+
uses: actions/download-artifact@v2
69+
with:
70+
name: api-web-bundle
71+
72+
- name: Deploy to Azure Web App
73+
id: deploy-to-webapp
74+
uses: azure/webapps-deploy@v2
75+
with:
76+
app-name: ${{ env.APP_SERVICE_NAME }}
77+
slot-name: 'production'
78+
publish-profile: ${{ secrets.BITPLATFORM_AZURE_APP_SERVICE_PUBLISH_PROFILE }}
79+
package: .

0 commit comments

Comments
 (0)