Closed mamu0 closed 1 week ago
It looks like this isn't a general purpose action to deploy to a CDN, but makes some opinionated guess about the structure of repository (typescript, yarn ,...). If this is the case, we should update module name and PR description to something like "NextJS deploy to CDN"
List of changes
Added
.github/actions/code_build/action.yaml
reusable action. Added.github/actions/cdn_code_deploy/action.yaml
reusable action. Added.github/actions/github_modified_files/action.yaml
reusable action.Motivation and context
The Actions for the github action that will deploy the CDN has been added. There is the possibility of listing the paths of the files to purge if it is not necessary to do it on
*
, just insert the value'true'
incontent_paths
, and thegithub_modified_files
action will start and return a list of all files changed in that commit.A Workflow example can be:
Type of changes
Does this introduce a change to production resources with possible user impact?
Other information
This template need to be tested in a real environment, a possible point of failure can be the
Update Artifact
of the out folder and the initial Prune.