diff --git a/.github/workflows/blazorui.demo.cd.yml b/.github/workflows/blazorui.demo.cd.yml index 7931e027b7..804559973e 100644 --- a/.github/workflows/blazorui.demo.cd.yml +++ b/.github/workflows/blazorui.demo.cd.yml @@ -1,7 +1,5 @@ name: Blazor UI Demo CD -# 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/templates/dev-ops - env: API_SERVER_ADDRESS: 'https://components.bitplatform.dev/api/' APP_SERVICE_NAME: 'bit-components' @@ -88,7 +86,7 @@ jobs: with: app-name: ${{ env.APP_SERVICE_NAME }} slot-name: 'production' - publish-profile: ${{ secrets.Bit.BlazorUI.Demo_AZURE_APP_SERVICE_PUBLISH_PROFILE }} + publish-profile: ${{ secrets.COMPONENTS_AZURE_APP_SERVICE_PUBLISH_PROFILE }} package: . - name: Purge cache @@ -109,14 +107,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - - - name: Create project from Boilerplate - run: | - 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.Boilerplate.0.0.0.nupkg - cd ../../../ && dotnet new bit-bp --name Bit.BlazorUI.Demo --database SqlServer --sample Admin + global-json-file: src/global.json - uses: actions/setup-node@v3 with: @@ -136,7 +127,7 @@ jobs: run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj -t:BeforeBuildTasks --no-restore - name: Build exe - run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c 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="Bit.BlazorUI.Demo" -p:ApplicationId="com.bitplatform.Bit.BlazorUI.Demo.Template" -p:UseRidGraph=true -f net8.0-windows10.0.19041.0 + run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c 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 - name: Upload artifact uses: actions/upload-artifact@v2 @@ -156,14 +147,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - - - name: Create project from Boilerplate - run: | - 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.Boilerplate.0.0.0.nupkg - cd ../../../ && dotnet new bit-bp --name Bit.BlazorUI.Demo --database SqlServer --sample Admin + global-json-file: src/global.json - uses: actions/setup-node@v3 with: @@ -173,7 +157,7 @@ jobs: uses: timheuer/base64-to-file@v1 with: fileDir: './src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/' - fileName: 'Bit.BlazorUI.Demo.keystore' + fileName: 'BitBlazorUIDemo.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address @@ -190,7 +174,7 @@ jobs: run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj -t:BeforeBuildTasks --no-restore - name: Build aab - run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c Release -p:AndroidPackageFormat=aab -p:AndroidKeyStore=true -p:AndroidSigningKeyStore="Bit.BlazorUI.Demo.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="Bit.BlazorUI.Demo" -p:ApplicationId="com.bitplatform.Bit.BlazorUI.Demo.Template" -f net8.0-android + run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c 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 net8.0-android - name: Upload artifact uses: actions/upload-artifact@v2 @@ -210,18 +194,11 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json + global-json-file: src/global.json - uses: actions/setup-node@v3 with: node-version: 18 - - - name: Create project from Boilerplate - run: | - 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.Boilerplate.0.0.0.nupkg - cd ../../../ && dotnet new bit-bp --name Bit.BlazorUI.Demo --database SqlServer --sample Admin - name: Update appsettings.json api server address uses: microsoft/variable-substitution@v1 @@ -237,7 +214,7 @@ jobs: run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj -t:BeforeBuildTasks --no-restore - name: Build pkg - run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c Release -p:CreatePackage=true -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:ApplicationTitle="Bit.BlazorUI.Demo" -p:ApplicationId="com.bitplatform.Bit.BlazorUI.Demo.Template" -f net8.0-maccatalyst + run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -c Release -p:CreatePackage=true -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net8.0-maccatalyst - name: Upload artifact uses: actions/upload-artifact@v2 @@ -257,7 +234,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json + global-json-file: src/global.json - uses: maxim-lobanov/setup-xcode@v1 with: @@ -266,13 +243,6 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - - - name: Create project from Boilerplate - run: | - 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.Boilerplate.0.0.0.nupkg - cd ../../../ && dotnet new bit-bp --name Bit.BlazorUI.Demo --database SqlServer --sample Admin - name: Update appsettings.json api server address uses: microsoft/variable-substitution@v1 @@ -300,7 +270,7 @@ jobs: - name: Download Apple Provisioning Profiles uses: Apple-Actions/download-provisioning-profiles@v1 with: - bundle-id: 'com.bitplatform.Bit.BlazorUI.Demo.Template' + bundle-id: 'com.bitplatform.BlazorUI.Demo' issuer-id: ${{ secrets.APPSTORE_API_KEY_ISSUER_ID }} api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} api-private-key: ${{ secrets.APPSTORE_API_KEY_PRIVATE_KEY }} @@ -309,7 +279,7 @@ jobs: run: dotnet build src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj -t:BeforeBuildTasks --no-restore - name: Build ipa - run: dotnet publish src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -p:RuntimeIdentifier=ios-arm64 -c Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="Bit.BlazorUI.Demo" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -p:ApplicationTitle="Bit.BlazorUI.Demo" -p:ApplicationId="com.bitplatform.Bit.BlazorUI.Demo.Template" -f net8.0-ios + run: dotnet publish src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj -p:RuntimeIdentifier=ios-arm64 -c Release -p:ArchiveOnBuild=true -p:CodesignKey="iPhone Distribution" -p:CodesignProvision="Bit.BlazorUI.Demo" -p:ApplicationDisplayVersion="${{ vars.APPLICATION_DISPLAY_VERSION }}" -p:ApplicationVersion="${{ vars.APPLICATION_VERSION }}" -f net8.0-ios - name: Upload artifact uses: actions/upload-artifact@v2