Skip to content

Commit

Permalink
feat(templates): merge todotemplate and adminpanel templates into one…
Browse files Browse the repository at this point in the history
… project template #6018 (#6019)
  • Loading branch information
ysmoradi authored Nov 14, 2023
1 parent 5f059eb commit 0e765c1
Show file tree
Hide file tree
Showing 782 changed files with 10,708 additions and 25,346 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/adminpanel.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -107,14 +107,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- uses: actions/setup-node@v3
with:
Expand All @@ -134,7 +134,7 @@ jobs:
run: dotnet build AdminPanel/src/Client/Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks --no-restore

- name: Build exe
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -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 }}" -p:UseRidGraph=true -f net8.0-windows10.0.19041.0
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -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 }}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -p:UseRidGraph=true -f net8.0-windows10.0.19041.0

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand All @@ -154,14 +154,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- uses: actions/setup-node@v3
with:
Expand All @@ -188,7 +188,7 @@ jobs:
run: dotnet build AdminPanel/src/Client/Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks --no-restore

- name: Build aab
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=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 }}" -f net8.0-android
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=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:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-android

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand All @@ -208,18 +208,18 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- name: Update appsettings.json api server address
uses: microsoft/variable-substitution@v1
Expand All @@ -235,7 +235,7 @@ jobs:
run: dotnet build AdminPanel/src/Client/Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks --no-restore

- name: Build pkg
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:CreatePackage=true -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net8.0-maccatalyst
run: dotnet build AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:CreatePackage=true -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-maccatalyst

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand All @@ -255,7 +255,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- uses: maxim-lobanov/setup-xcode@v1
with:
Expand All @@ -265,12 +265,12 @@ jobs:
with:
node-version: 18

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- name: Update appsettings.json api server address
uses: microsoft/variable-substitution@v1
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
run: dotnet build AdminPanel/src/Client/Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks --no-restore

- name: Build ipa
run: dotnet publish AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:RuntimeIdentifier=ios-arm64 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="AdminPanel" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net8.0-ios
run: dotnet publish AdminPanel/src/Client/App/AdminPanel.Client.App.csproj -p:RuntimeIdentifier=ios-arm64 -p:BlazorMode=BlazorHybrid -p:Configuration=Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="AdminPanel" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:ApplicationTitle="AdminPanel" -p:ApplicationId="com.bitplatform.AdminPanel.Template" -f net8.0-ios

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand All @@ -327,14 +327,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: src/Templates/AdminPanel/Bit.AdminPanel/global.json
global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json

- name: Create project from AdminPanel
- name: Create project from Boilerplate
run: |
cd src/Templates/AdminPanel && dotnet build -c Release
cd src/Templates/Boilerplate && dotnet build -c Release
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
dotnet new install Bit.AdminPanel.0.0.0.nupkg
cd ../../../ && dotnet new bit-admin --name AdminPanel --database SqlServer
dotnet new install Bit.Boilerplate.0.0.0.nupkg
cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample AdminPanel
- name: Setup .NET for Electron.NET
uses: actions/setup-dotnet@v3
Expand Down
Loading

0 comments on commit 0e765c1

Please sign in to comment.