-
Log into GitHub.
-
Navigate to the main Contrails page and click the Fork button.
- Proceed with instructions until your GitHub user has a fork of Contrails.
These instructions are an excerpt from Running Wrangler in CI/CD.
-
Log in to the Cloudflare dashboard. At the top-right, navigate to My Profile, and then API Tokens. Click on Create Token.
-
Select Use template next to Edit Cloudflare Workers.
- Set the Account Resources. If this Cloudflare account is only for this project, you can choose "All accounts" and "All zones."
- Click on Continue to summary.
- Click on Create Token.
- Copy and save the token, as you will need it in the next step.
In your GitHub repository, go to Settings > Secrets and variables > Actions
.
Click on New repository secret, and add CLOUDFLARE_API_TOKEN
.
- Go to
Cloudflare Dashboard > Workers & Pages
.
- Click on Create Application.
Click Deploy
- set
CLOUDFLARE_WORKER_NAME
- set CLOUDFLARE_ACCOUNT_ID