Persist artifacts in CircleCI
This website could have used master branch/docs
folder as a website:
- I build locally my Jekyll website
- If the output folder is not already set to
/docs/
, copy content from/_site
to/docs/
- commit and push master branch
But for the sake of learning, let’s do split the Circle CI workflow in two jobs:
- build
- deploy
I need to keep the artifacts produced by the build job to have it deployed by the deploy job. To do so, CircleCI offers persist_to_workspace
and attach_workspace
.
Articles: