This is the reference documentation for the CDN Upload GitHub action.
Inputs ΒΆ
The action accepts the following inputs:
teamRequired. Team name.
sourceRequired. Source directory.
destinationRequired. Destination directory.
tenantOptional. Tenant name.
Default value:
"nav"source_keep_parent_nameOptional. Keep the parent directory name in the destination path.
Default value:
truecache_invalidationOptional. Invalidate cached content after upload.
Default value:
falseThis is an asynchronous operation and may take up to 15 minutes after the action has run. Invalidation is intended for use in exceptional circumstances, not as part of your normal workflow.
See also Google's documentation on best practices for cache invalidation.
no_cache_pathsOptional. Comma separated list of paths that should not be cached.
Default value:
<empty>
Outputs ΒΆ
uploadedList of successfully uploaded files.
Available as
${{ steps.<job-id>.outputs.uploaded }}For example:yaml- id: 'upload-cdn' name: Upload static files to NAV CDN uses: nais/deploy/actions/cdn-upload/v2@master ...will be available in future steps as
${{ steps.upload-cdn.outputs.uploaded }}.