Skip to content

Commit

Permalink
feat(github actions): update all pipelines actions #7361 (#7362)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi authored Apr 12, 2024
1 parent 2a5dd22 commit e377dc9
Show file tree
Hide file tree
Showing 13 changed files with 162 additions and 162 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/admin-sample.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -84,7 +84,7 @@ jobs:
steps:

- name: Retrieve server bundle
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: server-bundle

Expand All @@ -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'
Expand Down Expand Up @@ -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: |
Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -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:
Expand Down Expand Up @@ -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: |
Expand All @@ -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:
Expand All @@ -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 }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/bit.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bit.full.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/blazorui.demo.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -68,7 +68,7 @@ jobs:
steps:

- name: Retrieve server bundle
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: server-bundle

Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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 }}
Expand Down
Loading

0 comments on commit e377dc9

Please sign in to comment.