Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"Account": "BCCodeSigningTest",
"CertificateProfile": "BCCodeSigningPublic"
},
"templateSha": "384c48472d243099ff7c570c0e7e4d54bfd4637d"
"templateSha": "94d3512cb617d22d7086b61c23a6c826e50163cf"
}
161 changes: 151 additions & 10 deletions .github/RELEASENOTES.copy.md

Large diffs are not rendered by default.

90 changes: 60 additions & 30 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,53 @@ jobs:
githubRunner: ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
skippedProjects: ${{ steps.determineProjectsToBuild.outputs.SkippedProjectsJson }}
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }}
baselineWorkflowSHA: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowSHA }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v7.0
with:
shell: pwsh

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
submodules: recursive

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v7.0
with:
shell: pwsh

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh
get: type,powerPlatformSolutionFolder,useGitSubmodules

- name: Read submodules token
id: ReadSubmodulesToken
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
get: type, powerPlatformSolutionFolder
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '-gitSubmodulesToken'

- name: Checkout Submodules
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
submodules: ${{ env.useGitSubmodules }}
token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}'

- name: Determine Workflow Depth
id: DetermineWorkflowDepth
Expand All @@ -75,7 +94,7 @@ jobs:

- name: Determine Projects To Build
id: determineProjectsToBuild
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v6.1
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v7.0
with:
shell: pwsh
maxBuildDepth: ${{ env.workflowDepth }}
Expand All @@ -88,23 +107,23 @@ jobs:

- name: Determine Delivery Target Secrets
id: DetermineDeliveryTargetSecrets
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v7.0
with:
shell: pwsh
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}

- name: Determine Delivery Targets
id: DetermineDeliveryTargets
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v6.1
uses: microsoft/AL-Go-Actions/DetermineDeliveryTargets@v7.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -114,7 +133,7 @@ jobs:

- name: Determine Deployment Environments
id: DetermineDeploymentEnvironments
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v6.1
uses: microsoft/AL-Go-Actions/DetermineDeploymentEnvironments@v7.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand All @@ -130,16 +149,25 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh
get: templateUrl

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'ghTokenWorkflow'

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go-Actions/CheckForUpdates@v6.1
uses: microsoft/AL-Go-Actions/CheckForUpdates@v7.0
with:
shell: pwsh
templateUrl: ${{ env.templateUrl }}
token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }}
downloadLatest: true

Build1:
Expand All @@ -158,10 +186,11 @@ jobs:
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
signArtifacts: true
useArtifactCache: true

Expand All @@ -181,10 +210,11 @@ jobs:
project: ${{ matrix.project }}
projectName: ${{ matrix.projectName }}
buildMode: ${{ matrix.buildMode }}
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
signArtifacts: true
useArtifactCache: true

Expand All @@ -206,12 +236,12 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh

Expand All @@ -220,7 +250,7 @@ jobs:
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0

- name: Build Reference Documentation
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v6.1
uses: microsoft/AL-Go-Actions/BuildReferenceDocumentation@v7.0
with:
shell: pwsh
artifacts: '.artifacts'
Expand Down Expand Up @@ -252,12 +282,12 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: ${{ matrix.shell }}
get: type,powerPlatformSolutionFolder
Expand All @@ -271,15 +301,15 @@ jobs:

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: ${{ matrix.shell }}
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'

- name: Deploy to Business Central
id: Deploy
uses: microsoft/AL-Go-Actions/Deploy@v6.1
uses: microsoft/AL-Go-Actions/Deploy@v7.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -291,7 +321,7 @@ jobs:

- name: Deploy to Power Platform
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v6.1
uses: microsoft/AL-Go-Actions/DeployPowerPlatform@v7.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -314,25 +344,25 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
with:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

- name: Deliver
uses: microsoft/AL-Go-Actions/Deliver@v6.1
uses: microsoft/AL-Go-Actions/Deliver@v7.0
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
Expand All @@ -352,7 +382,7 @@ jobs:

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v7.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/CreateOnlineDevelopmentEnvironment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v6.1
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@v7.0
with:
shell: pwsh

Expand All @@ -59,19 +59,19 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v6.1
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v7.0
with:
shell: pwsh

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -90,7 +90,7 @@ jobs:
Write-Host "AdminCenterApiCredentials not provided, initiating Device Code flow"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient = New-Object System.Net.WebClient
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v7.0/AL-Go-Helper.ps1', $ALGoHelperPath)
. $ALGoHelperPath
DownloadAndImportBcContainerHelper
$authContext = New-BcAuthContext -includeDeviceLogin -deviceLoginTimeout ([TimeSpan]::FromSeconds(0))
Expand All @@ -112,13 +112,13 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v6.1
uses: microsoft/AL-Go-Actions/ReadSettings@v7.0
with:
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v6.1
uses: microsoft/AL-Go-Actions/ReadSecrets@v7.0
with:
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -137,7 +137,7 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -value "adminCenterApiCredentials=$adminCenterApiCredentials"

- name: Create Development Environment
uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v6.1
uses: microsoft/AL-Go-Actions/CreateDevelopmentEnvironment@v7.0
with:
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
Expand All @@ -149,7 +149,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v6.1
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v7.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
Loading
Loading