From eb2166be41e6988778a062d1aa85c2f484d40a87 Mon Sep 17 00:00:00 2001 From: freddydk Date: Fri, 3 May 2024 07:22:02 +0000 Subject: [PATCH] Update AL-Go System Files --- .github/AL-Go-Settings.json | 2 +- .github/workflows/CICD.yaml | 85 ++++++++++++++++++------------------- 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index e16748d..accf621 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -35,7 +35,7 @@ "DeliverToStorage": { "CreateContainerIfNotExist": true }, - "templateSha": "94db63e060ede77ec7669c5c7b8d67598da31cd4", + "templateSha": "01a716f9ab54b2b55793fd7896b3521a37d395bd", "RepoVersion": "1.0", "artifact": "//24.0//first", "vsixFile": "latest", diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index c46af3a..816c065 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -275,8 +275,8 @@ jobs: uses: actions/deploy-pages@v4 Deploy: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0 + needs: [ Initialization, Build2, Build1, Build, BuildPP ] + if: (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0 strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }} runs-on: ${{ fromJson(matrix.os) }} name: Deploy to ${{ matrix.environment }} @@ -339,47 +339,46 @@ jobs: artifactsFolder: '.artifacts' deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} - Deliver: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]' - strategy: - matrix: - deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }} - fail-fast: false - runs-on: [ windows-latest ] - name: Deliver to ${{ matrix.deliveryTarget }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - path: '.artifacts' - - - name: Read settings - uses: freddydk/AL-Go/Actions/ReadSettings@PPP - with: - shell: powershell - - - name: Read secrets - id: ReadSecrets - uses: freddydk/AL-Go/Actions/ReadSecrets@PPP - with: - shell: powershell - gitHubSecrets: ${{ toJson(secrets) }} - getSecrets: '${{ matrix.deliveryTarget }}Context' - - - name: Deliver - uses: freddydk/AL-Go/Actions/Deliver@PPP - env: - Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' - with: - shell: powershell - type: 'CD' - projects: ${{ needs.Initialization.outputs.projects }} - deliveryTarget: ${{ matrix.deliveryTarget }} - artifacts: '.artifacts' + needs: [ Initialization, Build2, Build1, Build, BuildPP ] + if: (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]' + strategy: + matrix: + deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }} + fail-fast: false + runs-on: [ windows-latest ] + name: Deliver to ${{ matrix.deliveryTarget }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + path: '.artifacts' + + - name: Read settings + uses: freddydk/AL-Go/Actions/ReadSettings@PPP + with: + shell: powershell + + - name: Read secrets + id: ReadSecrets + uses: freddydk/AL-Go/Actions/ReadSecrets@PPP + with: + shell: powershell + gitHubSecrets: ${{ toJson(secrets) }} + getSecrets: '${{ matrix.deliveryTarget }}Context' + + - name: Deliver + uses: freddydk/AL-Go/Actions/Deliver@PPP + env: + Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}' + with: + shell: powershell + type: 'CD' + projects: ${{ needs.Initialization.outputs.projects }} + deliveryTarget: ${{ matrix.deliveryTarget }} + artifacts: '.artifacts' PostProcess: needs: [ Initialization, Build, BuildPP, Deploy, Deliver, DeployALDoc ]