Handing the Build to the Deploy Job
Job build produces dist/, which job deploy must ship. Which mechanism is meant for this?
build
dist/
deploy
Part of CI/CD Pipelines in Practice. Next step: Faster Pipelines with Caching
Choose one answer
actions/upload-artifact in build and actions/download-artifact in deploy.
actions/upload-artifact
actions/download-artifact
actions/cache, keyed on the commit SHA, restored in the deploy job.
actions/cache
A shared workspace: all jobs of a workflow see the same files.
Commit dist/ back to the branch in build and check it out in deploy.