From e377dc94d2991ab371b62f2371ed814589967037 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Fri, 12 Apr 2024 18:05:03 +0000 Subject: [PATCH] feat(github actions): update all pipelines actions #7361 (#7362) --- .github/workflows/admin-sample.cd.yml | 56 ++++++++-------- .github/workflows/bit.ci.yml | 12 ++-- .github/workflows/bit.full.ci.yml | 6 +- .github/workflows/blazorui.demo.cd.yml | 54 +++++++-------- .github/workflows/nuget.org.yml | 8 +-- .github/workflows/platform.website.cd.yml | 8 +-- .github/workflows/prerelease.nuget.org.yml | 8 +-- .github/workflows/sales.website.cd.yml | 8 +-- .github/workflows/todo-sample.cd.yml | 66 +++++++++---------- .../.azure-devops/workflows/cd.yml | 20 +++--- .../.azure-devops/workflows/ci.yml | 4 +- .../Bit.Boilerplate/.github/workflows/cd.yml | 66 +++++++++---------- .../Bit.Boilerplate/.github/workflows/ci.yml | 8 +-- 13 files changed, 162 insertions(+), 162 deletions(-) diff --git a/.github/workflows/admin-sample.cd.yml b/.github/workflows/admin-sample.cd.yml index 10c983f942..2c429dcfd5 100644 --- a/.github/workflows/admin-sample.cd.yml +++ b/.github/workflows/admin-sample.cd.yml @@ -23,10 +23,10 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json @@ -38,16 +38,16 @@ jobs: cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json' env: ApiServerAddress: ${{ env.API_SERVER_ADDRESS }} ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install wasm run: cd src && dotnet workload install wasm-tools wasm-experimental @@ -68,7 +68,7 @@ jobs: 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}}" - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: ${{env.DOTNET_ROOT}}/server @@ -84,7 +84,7 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle @@ -93,7 +93,7 @@ jobs: rm IdentityCertificate.pfx - name: Extract identity certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'IdentityCertificate.pfx' @@ -121,16 +121,16 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src\Templates\Boilerplate\Bit.Boilerplate\global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Create project from Boilerplate run: | @@ -140,7 +140,7 @@ jobs: cd ..\..\..\ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --windows --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'AdminPanel\src\Client\AdminPanel.Client.Core\appsettings.json' env: @@ -182,10 +182,10 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json @@ -196,19 +196,19 @@ jobs: dotnet new install Bit.Boilerplate.0.0.0.nupkg cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Extract Android signing key from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './AdminPanel/src/Client/AdminPanel.Client.Maui/' fileName: 'AdminPanel.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json' env: @@ -240,25 +240,25 @@ jobs: build_blazor_hybrid_ios: name: build blazor hybrid (iOS-macOS) - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15' + xcode-version: '15.3' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Create project from Boilerplate run: | @@ -268,7 +268,7 @@ jobs: cd ../../../ && dotnet new bit-bp --name AdminPanel --database SqlServer --sample Admin --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'AdminPanel/src/Client/AdminPanel.Client.Core/appsettings.json' env: @@ -282,14 +282,14 @@ jobs: run: cd src && dotnet workload install maui - name: Extract iOS code signing certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'DistributionCert.p12' encodedString: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_BASE64 }} - name: Import Code-Signing Certificates - uses: Apple-Actions/import-codesign-certs@v1 + uses: apple-actions/import-codesign-certs@v2 with: p12-filepath: './DistributionCert.p12' p12-password: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_PASSWORD }} diff --git a/.github/workflows/bit.ci.yml b/.github/workflows/bit.ci.yml index b6e050501a..8a14b01057 100644 --- a/.github/workflows/bit.ci.yml +++ b/.github/workflows/bit.ci.yml @@ -16,13 +16,13 @@ jobs: uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install wasm and maui run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental @@ -44,13 +44,13 @@ jobs: uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install wasm and maui run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental diff --git a/.github/workflows/bit.full.ci.yml b/.github/workflows/bit.full.ci.yml index 6991750d20..9bc101a737 100644 --- a/.github/workflows/bit.full.ci.yml +++ b/.github/workflows/bit.full.ci.yml @@ -15,13 +15,13 @@ jobs: uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install Bit.Boilerplate from local source run: | diff --git a/.github/workflows/blazorui.demo.cd.yml b/.github/workflows/blazorui.demo.cd.yml index 0100b70664..5e3018582a 100644 --- a/.github/workflows/blazorui.demo.cd.yml +++ b/.github/workflows/blazorui.demo.cd.yml @@ -21,23 +21,23 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/appsettings.json' env: ApiServerAddress: ${{ env.API_SERVER_ADDRESS }} - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install wasm run: cd src && dotnet workload install wasm-tools wasm-experimental @@ -52,7 +52,7 @@ jobs: run: dotnet publish src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj -c Release -p:PwaEnabled=true -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: ${{env.DOTNET_ROOT}}/server @@ -68,7 +68,7 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle @@ -94,19 +94,19 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src\global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src\BlazorUI\Demo\Client\Bit.BlazorUI.Demo.Client.Core\appsettings.json' env: @@ -147,26 +147,26 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Extract Android signing key from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/' fileName: 'BitBlazorUIDemo.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/appsettings.json' env: @@ -192,28 +192,28 @@ jobs: build_blazor_hybrid_ios: name: build blazor hybrid (iOS-macOS) - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15' + xcode-version: '15.3' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/appsettings.json' env: @@ -223,14 +223,14 @@ jobs: run: cd src && dotnet workload install maui - name: Extract iOS code signing certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'DistributionCert.p12' encodedString: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_BASE64 }} - name: Import Code-Signing Certificates - uses: Apple-Actions/import-codesign-certs@v1 + uses: apple-actions/import-codesign-certs@v2 with: p12-filepath: './DistributionCert.p12' p12-password: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_PASSWORD }} diff --git a/.github/workflows/nuget.org.yml b/.github/workflows/nuget.org.yml index 4f06b41daf..d84141686e 100644 --- a/.github/workflows/nuget.org.yml +++ b/.github/workflows/nuget.org.yml @@ -25,20 +25,20 @@ jobs: uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Delete AssemblyOriginatorKeyFile.snk run: | rm src/AssemblyOriginatorKeyFile.snk - name: Extract strong sign certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './src/' fileName: 'AssemblyOriginatorKeyFile.snk' diff --git a/.github/workflows/platform.website.cd.yml b/.github/workflows/platform.website.cd.yml index a5ed1ea09d..83da44d6f6 100644 --- a/.github/workflows/platform.website.cd.yml +++ b/.github/workflows/platform.website.cd.yml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json @@ -37,7 +37,7 @@ jobs: run: dotnet publish src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj -c Release --self-contained -r linux-x64 -o server - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: server @@ -53,7 +53,7 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle diff --git a/.github/workflows/prerelease.nuget.org.yml b/.github/workflows/prerelease.nuget.org.yml index d19d112cd8..71c1955bfa 100644 --- a/.github/workflows/prerelease.nuget.org.yml +++ b/.github/workflows/prerelease.nuget.org.yml @@ -15,20 +15,20 @@ jobs: uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Delete AssemblyOriginatorKeyFile.snk run: | rm src/AssemblyOriginatorKeyFile.snk - name: Extract strong sign certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './src/' fileName: 'AssemblyOriginatorKeyFile.snk' diff --git a/.github/workflows/sales.website.cd.yml b/.github/workflows/sales.website.cd.yml index 11e6ba6ac7..eaf4643480 100644 --- a/.github/workflows/sales.website.cd.yml +++ b/.github/workflows/sales.website.cd.yml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/global.json @@ -37,7 +37,7 @@ jobs: run: dotnet publish src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj -c Release --self-contained -r linux-x64 -o server - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: server @@ -53,7 +53,7 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle diff --git a/.github/workflows/todo-sample.cd.yml b/.github/workflows/todo-sample.cd.yml index fd8e96cd82..cf8cecfbd6 100644 --- a/.github/workflows/todo-sample.cd.yml +++ b/.github/workflows/todo-sample.cd.yml @@ -22,16 +22,16 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Create project from Boilerplate run: | @@ -41,7 +41,7 @@ jobs: cd ../../../ && dotnet new bit-bp --name TodoSample --database SqlServer --sample Todo --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'TodoSample/src/Client/TodoSample.Client.Core/appsettings.json' env: @@ -66,7 +66,7 @@ jobs: run: dotnet publish TodoSample/src/TodoSample.Server/TodoSample.Server.csproj -c Release -p:PwaEnabled=true --self-contained -r linux-x64 -o ${{env.DOTNET_ROOT}}/server -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: ${{env.DOTNET_ROOT}}/server @@ -83,7 +83,7 @@ jobs: run: dotnet publish TodoSample/src/Client/TodoSample.Client.Web/TodoSample.Client.Web.csproj -c Release -p:BlazorWebAssemblyStandalone=true -o ${{env.DOTNET_ROOT}}/static - name: Upload static artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: static-bundle path: ${{env.DOTNET_ROOT}}/static @@ -99,7 +99,7 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle @@ -108,7 +108,7 @@ jobs: rm IdentityCertificate.pfx - name: Extract identity certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'IdentityCertificate.pfx' @@ -136,16 +136,16 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src\Templates\Boilerplate\Bit.Boilerplate\global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Create project from Boilerplate run: | @@ -155,7 +155,7 @@ jobs: cd ..\..\..\ && dotnet new bit-bp --name TodoSample --database SqlServer --sample Todo --windows --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'TodoSample\src\Client\TodoSample.Client.Core\appsettings.json' env: @@ -197,16 +197,16 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Create project from Boilerplate run: | @@ -216,14 +216,14 @@ jobs: cd ../../../ && dotnet new bit-bp --name TodoSample --database SqlServer --sample Todo --appInsights - name: Extract Android signing key from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './TodoSample/src/Client/TodoSample.Client.Maui/' fileName: 'TodoSample.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'TodoSample/src/Client/TodoSample.Client.Core/appsettings.json' env: @@ -243,7 +243,7 @@ jobs: run: rm TodoSample/src/Client/TodoSample.Client.Maui/Resources/AppIcon/appicon.svg - name: Extract App Icon from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './TodoSample/src/Client/TodoSample.Client.Maui/Resources/AppIcon/' fileName: 'appicon.svg' @@ -253,7 +253,7 @@ jobs: run: rm TodoSample/src/Client/TodoSample.Client.Maui/Resources/Splash/splash.svg - name: Extract App Splash Screen from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './TodoSample/src/Client/TodoSample.Client.Maui/Resources/Splash/' fileName: 'splash.svg' @@ -275,25 +275,25 @@ jobs: build_blazor_hybrid_ios: name: build blazor hybrid (iOS-macOS) - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: src/Templates/Boilerplate/Bit.Boilerplate/global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15' + xcode-version: '15.3' - name: Create project from Boilerplate run: | @@ -303,7 +303,7 @@ jobs: cd ../../../ && dotnet new bit-bp --name TodoSample --database SqlServer --sample Todo --appInsights - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'TodoSample/src/Client/TodoSample.Client.Core/appsettings.json' env: @@ -317,14 +317,14 @@ jobs: run: cd src && dotnet workload install maui - name: Extract iOS code signing certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'DistributionCert.p12' encodedString: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_BASE64 }} - name: Import Code-Signing Certificates - uses: Apple-Actions/import-codesign-certs@v1 + uses: apple-actions/import-codesign-certs@v2 with: p12-filepath: './DistributionCert.p12' p12-password: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_PASSWORD }} @@ -341,7 +341,7 @@ jobs: run: rm TodoSample/src/Client/TodoSample.Client.Maui/Resources/AppIcon/appicon.svg - name: Extract App Icon from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './TodoSample/src/Client/TodoSample.Client.Maui/Resources/AppIcon/' fileName: 'appicon.svg' @@ -351,7 +351,7 @@ jobs: run: rm TodoSample/src/Client/TodoSample.Client.Maui/Resources/Splash/splash.svg - name: Extract App Splash Screen from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './TodoSample/src/Client/TodoSample.Client.Maui/Resources/Splash/' fileName: 'splash.svg' diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/cd.yml b/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/cd.yml index 2ee735d701..0d4791b7a8 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/cd.yml +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/cd.yml @@ -26,9 +26,9 @@ jobs: useGlobalJson: true workingDirectory: 'src' - - task: NodeTool@0 + - task: NodeTool@1 inputs: - versionSpec: '18.x' + versionSpec: '20.x' displayName: 'Install Node.js' # - task: Bash@3 @@ -45,7 +45,7 @@ jobs: script: | 'cd src && dotnet workload install wasm-tools wasm-experimental' - - task: FileTransform@1 + - task: FileTransform@2 displayName: Update appsettings.json inputs: fileType: 'json' @@ -105,7 +105,7 @@ jobs: artifact: 'migrations-bundle' path: ./ - - task: FileTransform@1 + - task: FileTransform@2 displayName: Update appsettings.json inputs: fileType: 'json' @@ -158,12 +158,12 @@ jobs: useGlobalJson: true workingDirectory: 'src' - - task: NodeTool@0 + - task: NodeTool@1 inputs: - versionSpec: '18.x' + versionSpec: '20.x' displayName: 'Install Node.js' - - task: FileTransform@1 + - task: FileTransform@2 displayName: Update appsettings.json inputs: fileType: 'json' @@ -217,9 +217,9 @@ jobs: useGlobalJson: true workingDirectory: 'src' - - task: NodeTool@0 + - task: NodeTool@1 inputs: - versionSpec: '18.x' + versionSpec: '20.x' displayName: 'Install Node.js' - task: Bash@3 @@ -245,7 +245,7 @@ jobs: failOnStderr: true displayName: Copy keystore to app project folder - - task: FileTransform@1 + - task: FileTransform@2 displayName: Update appsettings.json inputs: fileType: 'json' diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/ci.yml b/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/ci.yml index fde3de1ea7..ad9b904e76 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/ci.yml +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.azure-devops/workflows/ci.yml @@ -17,9 +17,9 @@ jobs: useGlobalJson: true workingDirectory: 'src' - - task: NodeTool@0 + - task: NodeTool@1 inputs: - versionSpec: '18.x' + versionSpec: '20.x' displayName: 'Install Node.js' - task: Bash@3 diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/cd.yml b/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/cd.yml index 91391bb38c..6427e9e465 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/cd.yml +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/cd.yml @@ -24,22 +24,22 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 # - name: Enable pre rendering # run: sed -i 's/public static readonly bool PrerenderEnabled = false;/public static readonly bool PrerenderEnabled = true;/g' src/Client/Boilerplate.Client.Core/Services/AppRenderMode.cs - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/Client/Boilerplate.Client.Core/appsettings.json' env: @@ -59,13 +59,13 @@ jobs: cd src/Boilerplate.Server/ && dotnet tool restore && dotnet ef migrations bundle --self-contained -r linux-x64 --project Boilerplate.Server.csproj - name: Upload ef migrations bundle - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: migrations-bundle path: src/Boilerplate.Server/efbundle - name: Upload server artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: server-bundle path: ${{env.DOTNET_ROOT}}/server @@ -81,29 +81,29 @@ jobs: steps: - name: Retrieve server bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: server-bundle - name: Retrieve migrations bundle - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: migrations-bundle - name: Update appsettings.json - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'appsettings.json' env: - ConnectionStrings.SqlServerConnectionString: ${{ secrets.DB_CONNECTION_STRING }} - AppSettings.IdentitySettings.IdentityCertificatePassword: ${{ secrets.API_IDENTITY_CERTIFICATE_PASSWORD }} + ConnectionStrings_SqlServerConnectionString: ${{ secrets.DB_CONNECTION_STRING }} + AppSettings_IdentitySettings_IdentityCertificatePassword: ${{ secrets.API_IDENTITY_CERTIFICATE_PASSWORD }} - name: Delete IdentityCertificate.pfx run: | rm IdentityCertificate.pfx - name: Extract identity certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'IdentityCertificate.pfx' @@ -132,19 +132,19 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src\Client\Boilerplate.Client.Core\appsettings.json' env: @@ -186,26 +186,26 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Extract Android signing key from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './src/Client/Boilerplate.Client.Maui/' fileName: 'Boilerplate.keystore' encodedString: ${{ secrets.ANDROID_RELEASE_KEYSTORE_FILE_BASE64 }} - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/Client/Boilerplate.Client.Core/appsettings.json' env: @@ -236,28 +236,28 @@ jobs: build_blazor_hybrid_iOS: name: build blazor hybrid (iOS-macOS) - runs-on: macos-13 + runs-on: macos-14 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15' + xcode-version: '15.3' - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Update appsettings.json api server address - uses: microsoft/variable-substitution@v1 + uses: devops-actions/variable-substitution@v1.2 with: files: 'src/Client/Boilerplate.Client.Core/appsettings.json' env: @@ -267,14 +267,14 @@ jobs: run: cd src && dotnet workload install maui - name: Extract iOS code signing certificate from env - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.2 with: fileDir: './' fileName: 'DistributionCert.p12' encodedString: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_BASE64 }} - name: Import Code-Signing Certificates - uses: Apple-Actions/import-codesign-certs@v1 + uses: apple-actions/import-codesign-certs@v2 with: p12-filepath: './DistributionCert.p12' p12-password: ${{ secrets.APPSTORE_CODE_SIGNING_CERTIFICATE_FILE_PASSWORD }} diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/ci.yml b/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/ci.yml index 1a87a47761..33131146fb 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/ci.yml +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.github/workflows/ci.yml @@ -16,16 +16,16 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Build run: dotnet build Boilerplate.sln -c Release \ No newline at end of file