Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove thisbuild artifacts and support preprocessor symbols #1374

Merged
merged 31 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f85460e
remove thisbuild
freddydk Dec 28, 2024
e8658c4
test
freddydk Dec 28, 2024
6247a1d
90
freddydk Dec 28, 2024
1faaa66
use fromjson
freddydk Dec 28, 2024
319b9a5
use real artifacts
freddydk Dec 28, 2024
ed781c3
add version
freddydk Dec 28, 2024
1aa48b7
set retention days
freddydk Dec 28, 2024
2b4a02e
use branchname
freddydk Dec 28, 2024
43c5e23
add buildMode to conditionalsettings
freddydk Dec 29, 2024
f86123a
add preprocessorsymbols
freddydk Dec 29, 2024
d9b74f0
i
freddydk Dec 29, 2024
e195919
join array
freddydk Dec 29, 2024
6a1a59f
use foreach
freddydk Dec 29, 2024
929606d
use action
freddydk Dec 29, 2024
4328af3
remove var
freddydk Dec 30, 2024
ae89245
use setting
freddydk Dec 30, 2024
3c573ef
add settings
freddydk Dec 30, 2024
a0de78a
add preprocessor symbols
freddydk Dec 30, 2024
586d854
Merge branch 'main' into thisbuild
freddydk Dec 30, 2024
f8ab7d4
release notes and tests
freddydk Dec 31, 2024
4a00e64
Merge branch 'thisbuild' of https://github.com/freddydk/AL-Go into th…
freddydk Dec 31, 2024
6297798
precommit and test
freddydk Dec 31, 2024
0b7cfce
add deprecations and deprecate cleanModePreprocessorSymbols
freddydk Jan 7, 2025
9c124b5
add text to readme
freddydk Jan 7, 2025
64a231a
Merge branch 'main' into thisbuild
freddydk Jan 7, 2025
daab11e
Merge branch 'main' into thisbuild
freddydk Jan 8, 2025
f31e714
precommit
freddydk Jan 8, 2025
28b384a
review
freddydk Jan 8, 2025
dce5d18
precommit
freddydk Jan 8, 2025
0750a6d
format
freddydk Jan 8, 2025
e234334
precommit
freddydk Jan 8, 2025
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
5 changes: 5 additions & 0 deletions Actions/AL-Go-Helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function ReadSettings {
[string] $baseFolder = "$ENV:GITHUB_WORKSPACE",
[string] $repoName = "$ENV:GITHUB_REPOSITORY",
[string] $project = '.',
[string] $buildMode = "Default",
[string] $workflowName = "$ENV:GITHUB_WORKFLOW",
[string] $userName = "$ENV:GITHUB_ACTOR",
[string] $branchName = "$ENV:GITHUB_REF_NAME",
Expand Down Expand Up @@ -730,6 +731,10 @@ function ReadSettings {
if ("$conditionalSetting" -ne "") {
$conditionMet = $true
$conditions = @()
if ($conditionalSetting.PSObject.Properties.Name -eq "buildModes") {
$conditionMet = $conditionMet -and ($conditionalSetting.buildModes | Where-Object { $buildMode -like $_ })
$conditions += @("buildMode: $buildMode")
}
if ($conditionalSetting.PSObject.Properties.Name -eq "branches") {
$conditionMet = $conditionMet -and ($conditionalSetting.branches | Where-Object { $branchName -like $_ })
$conditions += @("branchName: $branchName")
Expand Down
7 changes: 0 additions & 7 deletions Actions/CalculateArtifactNames/CalculateArtifactNames.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,3 @@ else {
$value = "$($projectName)-$($branchName)-$buildMode$_-$suffix"
Set-OutputVariable -name $name -value $value
}

# Set this build artifacts name
'Apps', 'Dependencies', 'TestApps' | ForEach-Object {
$name = "ThisBuild$($_)ArtifactsName"
$value = "thisbuild-$($projectName)-$($buildMode)$($_)"
Set-OutputVariable -name $name -value $value
}
3 changes: 0 additions & 3 deletions Actions/CalculateArtifactNames/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ none

| Name | Description |
| :-- | :-- |
| ThisBuildAppsArtifactsName | Artifact name for apps being built in the current workflow run |
| ThisBuildDependenciesArtifactsName | Artifact name for dependencies of apps being built in the current workflow run |
| ThisBuildTestAppsArtifactsName | Artifact name for test apps being built in the current workflow run |
| AppsArtifactsName | Artifacts name for Apps |
| PowerPlatformSolutionArtifactsName | Artifacts name for PowerPlatform Solution |
| DependenciesArtifactsName | Artifacts name for Dependencies |
Expand Down
9 changes: 0 additions & 9 deletions Actions/CalculateArtifactNames/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ inputs:
required: false
default: ''
outputs:
ThisBuildAppsArtifactsName:
description: Artifact name for apps being built in the current workflow run
value: ${{ steps.calculateartifactnames.outputs.ThisBuildAppsArtifactsName }}
ThisBuildDependenciesArtifactsName:
description: Artifact name for dependencies of apps being built in the current workflow run
value: ${{ steps.calculateartifactnames.outputs.ThisBuildDependenciesArtifactsName }}
ThisBuildTestAppsArtifactsName:
description: Artifact name for test apps being built in the current workflow run
value: ${{ steps.calculateartifactnames.outputs.ThisBuildTestAppsArtifactsName }}
AppsArtifactsName:
description: Artifacts name for Apps
value: ${{ steps.calculateartifactnames.outputs.AppsArtifactsName }}
Expand Down
6 changes: 4 additions & 2 deletions Actions/Github-Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
$probingPathsJson,
[string] $api_url = $ENV:GITHUB_API_URL,
[string] $saveToPath = (Join-Path $ENV:GITHUB_WORKSPACE ".dependencies"),
[string[]] $masks = @('Apps','Dependencies','TestApps')
[string[]] $masks = @('Apps','Dependencies','TestApps'),
[string] $artifactsNameSuffix = ''
Fixed Show fixed Hide fixed
)

if (!(Test-Path $saveToPath)) {
Expand All @@ -141,9 +142,10 @@
if ($dependency.release_status -eq "thisBuild") {
$missingProjects = @()
foreach($project in $projects.Split(',')) {
$branchName = $dependency.branch.Replace('\', '_').Replace('/', '_')
$project = $project.Replace('\','_').Replace('/','_') # sanitize project name

$downloadName = Join-Path $saveToPath "thisbuild-$project-$($mask)"
$downloadName = Join-Path $saveToPath "$project-$branchName-$mask-*"

if (Test-Path $downloadName -PathType Container) {
$folder = Get-Item $downloadName
Expand Down
1 change: 1 addition & 0 deletions Actions/ReadSettings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ none
| :-- | :-: | :-- | :-- |
| shell | | The shell (powershell or pwsh) in which the PowerShell script in this action should run | powershell |
| project | | Project name if the repository is setup for multiple projects | . |
| buildMode | | Build mode. Only set when called from _BuildALGoProject | Default |
| get | | Specifies which properties to get from the settings file, default is all | |

## OUTPUT
Expand Down
4 changes: 3 additions & 1 deletion Actions/ReadSettings/ReadSettings.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
Param(
[Parameter(HelpMessage = "Project folder", Mandatory = $false)]
[string] $project = ".",
[Parameter(HelpMessage = "Build mode", Mandatory = $false)]
[string] $buildMode = "Default",
[Parameter(HelpMessage = "Specifies which properties to get from the settings file, default is all", Mandatory = $false)]
[string] $get = ""
)

. (Join-Path -Path $PSScriptRoot -ChildPath "..\AL-Go-Helper.ps1" -Resolve)

$settings = ReadSettings -project $project
$settings = ReadSettings -project $project -buildMode $buildMode
if ($get) {
$getSettings = $get.Split(',').Trim()
}
Expand Down
7 changes: 6 additions & 1 deletion Actions/ReadSettings/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: Project folder
required: false
default: '.'
buildMode:
description: Build mode
required: false
default: 'Default'
get:
description: Specifies which properties to get from the settings file, default is all
required: false
Expand All @@ -28,10 +32,11 @@ runs:
id: readsettings
env:
_project: ${{ inputs.project }}
_buildMode: ${{ inputs.buildMode }}
_get: ${{ inputs.get }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "ReadSettings" -Action {
${{ github.action_path }}/ReadSettings.ps1 -project $ENV:_project -get $ENV:_get
${{ github.action_path }}/ReadSettings.ps1 -project $ENV:_project -buildMode $ENV:_buildMode -get $ENV:_get
}
branding:
icon: terminal
Expand Down
22 changes: 12 additions & 10 deletions Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,9 @@ try {

switch($buildMode){
'Clean' {
$preprocessorsymbols = $settings.cleanModePreprocessorSymbols

if (!$preprocessorsymbols) {
if (-not $settings.ContainsKey('cleanModePreprocessorSymbols')) {
throw "No cleanModePreprocessorSymbols defined in settings.json for this project. Please add the preprocessor symbols to use when building in clean mode or disable CLEAN mode."
}

if ($runAlPipelineParams.Keys -notcontains 'preprocessorsymbols') {
$runAlPipelineParams["preprocessorsymbols"] = @()
}

Write-Host "Adding Preprocessor symbols: $preprocessorsymbols"
$runAlPipelineParams["preprocessorsymbols"] += $preprocessorsymbols
}
'Translated' {
if ($runAlPipelineParams.Keys -notcontains 'features') {
Expand All @@ -391,6 +382,17 @@ try {
}
}

if ($runAlPipelineParams.Keys -notcontains 'preprocessorsymbols') {
$runAlPipelineParams["preprocessorsymbols"] = @()
}
foreach($preprocessorSymbolsSettingsName in @("preprocessorSymbols", "$($buildMode)ModePreprocessorSymbols")) {
if ($settings.ContainsKey($preprocessorSymbolsSettingsName)) {
$preprocessorsymbols = $settings."$preprocessorSymbolsSettingsName"
Write-Host "Adding Preprocessor symbols from setting $preprocessorSymbolsSettingsName : $($preprocessorsymbols -join ',')"
$runAlPipelineParams["preprocessorsymbols"] += $preprocessorsymbols
}
}

Write-Host "Invoke Run-AlPipeline with buildmode $buildMode"
Run-AlPipeline @runAlPipelineParams `
-accept_insiderEula `
Expand Down
1 change: 1 addition & 0 deletions Scenarios/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ to your [project settings file](#where-are-the-settings-located) will ensure tha

- **repositories** settings will be applied to repositories matching the patterns
- **projects** settings will be applied to projects matching the patterns
- **buildModes** settings will be applied when building with these buildModes
- **branches** settings will be applied to branches matching the patterns
- **workflows** settings will be applied to workflows matching the patterns
- **users** settings will be applied for users matching the patterns
Expand Down
6 changes: 4 additions & 2 deletions Templates/AppSource App/.github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}

steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@main
Expand Down Expand Up @@ -88,6 +90,7 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"

- name: Determine Projects To Build
id: determineProjectsToBuild
Expand Down Expand Up @@ -176,8 +179,7 @@ jobs:
buildMode: ${{ matrix.buildMode }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
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 }}
artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }}
signArtifacts: true
useArtifactCache: true

Expand Down
4 changes: 3 additions & 1 deletion Templates/AppSource App/.github/workflows/Current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"

- name: Determine Projects To Build
id: determineProjectsToBuild
Expand All @@ -98,7 +100,7 @@ jobs:
buildMode: ${{ matrix.buildMode }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }}
artifactsNameSuffix: 'Current'

PostProcess:
Expand Down
4 changes: 3 additions & 1 deletion Templates/AppSource App/.github/workflows/NextMajor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"

- name: Determine Projects To Build
id: determineProjectsToBuild
Expand All @@ -98,7 +100,7 @@ jobs:
buildMode: ${{ matrix.buildMode }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }}
artifactsNameSuffix: 'NextMajor'

PostProcess:
Expand Down
4 changes: 3 additions & 1 deletion Templates/AppSource App/.github/workflows/NextMinor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"

- name: Determine Projects To Build
id: determineProjectsToBuild
Expand All @@ -98,7 +100,7 @@ jobs:
buildMode: ${{ matrix.buildMode }}
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }}
artifactsNameSuffix: 'NextMinor'

PostProcess:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }}
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
artifactsRetentionDays: ${{ steps.DetermineWorkflowDepth.outputs.ArtifactsRetentionDays }}
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
id: DetermineWorkflowDepth
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "WorkflowDepth=$($env:workflowDepth)"
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ArtifactsRetentionDays=90"

- name: Determine Projects To Build
id: determineProjectsToBuild
Expand Down Expand Up @@ -97,7 +99,7 @@ jobs:
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
secrets: 'licenseFileUrl,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
artifactsRetentionDays: ${{ fromJson(needs.Initialization.outputs.artifactsRetentionDays) }}
artifactsNameSuffix: 'PR${{ github.event.number }}'

StatusCheck:
Expand Down
49 changes: 11 additions & 38 deletions Templates/AppSource App/.github/workflows/_BuildALGoProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,10 @@ on:
required: false
default: ''
type: string
publishThisBuildArtifacts:
description: Flag indicating whether this build artifacts should be published
type: boolean
default: false
publishArtifacts:
description: Flag indicating whether the artifacts should be published
type: boolean
default: false
artifactsRetentionDays:
freddydk marked this conversation as resolved.
Show resolved Hide resolved
description: Number of days to keep the artifacts
type: number
default: 0
artifactsNameSuffix:
description: Suffix to add to the artifacts names
required: false
Expand Down Expand Up @@ -97,6 +93,7 @@ jobs:
with:
shell: ${{ inputs.shell }}
project: ${{ inputs.project }}
buildMode: ${{ inputs.buildMode }}
get: useCompilerFolder,keyVaultCodesignCertificateName,doNotSignApps,doNotRunTests,artifact,generateDependencyArtifact,trustedSigning,useGitSubmodules

- name: Read secrets
Expand Down Expand Up @@ -175,56 +172,32 @@ jobs:
buildMode: ${{ inputs.buildMode }}
suffix: ${{ inputs.artifactsNameSuffix }}

- name: Upload thisbuild artifacts - apps
if: inputs.publishThisBuildArtifacts
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildAppsArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/Apps/'
if-no-files-found: ignore
retention-days: 1

- name: Upload thisbuild artifacts - dependencies
if: inputs.publishThisBuildArtifacts
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildDependenciesArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/Dependencies/'
if-no-files-found: ignore
retention-days: 1

- name: Upload thisbuild artifacts - test apps
if: inputs.publishThisBuildArtifacts
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: ${{ steps.calculateArtifactsNames.outputs.ThisBuildTestAppsArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/TestApps/'
if-no-files-found: ignore
retention-days: 1

- name: Publish artifacts - apps
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: inputs.publishArtifacts
if: inputs.artifactsRetentionDays > 0
with:
name: ${{ steps.calculateArtifactsNames.outputs.AppsArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/Apps/'
if-no-files-found: ignore
retention-days: ${{ inputs.artifactsRetentionDays }}

- name: Publish artifacts - dependencies
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: inputs.publishArtifacts && env.generateDependencyArtifact == 'True'
if: inputs.artifactsRetentionDays > 0 && env.generateDependencyArtifact == 'True'
with:
name: ${{ steps.calculateArtifactsNames.outputs.DependenciesArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/Dependencies/'
if-no-files-found: ignore
retention-days: ${{ inputs.artifactsRetentionDays }}

- name: Publish artifacts - test apps
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: inputs.publishArtifacts
if: inputs.artifactsRetentionDays > 0
with:
name: ${{ steps.calculateArtifactsNames.outputs.TestAppsArtifactsName }}
path: '${{ inputs.project }}/.buildartifacts/TestApps/'
if-no-files-found: ignore
retention-days: ${{ inputs.artifactsRetentionDays }}
freddydk marked this conversation as resolved.
Show resolved Hide resolved

- name: Publish artifacts - build output
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
Expand Down
Loading
Loading