Appearance
CI/CD
Codedraw uses Github Actions for CI/CD and it comes with three workflows:
Cloudflare Pages Deploy
This Workflow allows you to deploy a client application to Cloudflare Pages. You can find it under the cloudflare.pages.deploy.yml
file in the .github/worfklows
folder.
For instance, I decide to create a client application named my-client-app
within my Codedraw generated project and I want to deploy it to Cloudflare Pages. I will proceed to create a new file named my-client-app.pages.deploy.yml
in the .github/worfklows
folder and add the following content:
Cloudflare Worker Build
This workflow allows you to build a worker. You can this workflow in the .github/worfklows
folder under the cloudflare.worker.build.yml
file. Codedraw will produce an example on how to use this workflow for your worker build. You can re-use this workflow to build any other worker you create.
Cloudflare Worker Deploy
This workflow allows you to deploy a worker. You can this workflow in the .github/worfklows
folder under the cloudflare.worker.deploy.yml
file. Codedraw will produce an example on how to use this workflow for your worker deployment. You can re-use this workflow to deploy any other worker you create.
Workflow required scripts
The out of the box workflows are relying on some scripts that are required to be present in your project package.json
files. Each workspace package is required to provide the following scripts:
ci:build
- Responsible for building the package artifact.