From 27c5638d2288563402507f7c9765ce01d9d374b1 Mon Sep 17 00:00:00 2001 From: Obinna Ekwuno Date: Thu, 19 May 2022 17:04:58 +0100 Subject: [PATCH 1/2] update readme to show how to get account ID and API token --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index ce3c95a..ab6d30b 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,17 @@ GitHub Action for creating Cloudflare Pages deployments, using the new [Direct U 1. Replace `YOUR_ACCOUNT_ID`, `YOUR_PROJECT_NAME` and `YOUR_ASSET_DIRECTORY` with the appropriate values to your Pages project. +### Get account ID +To find your account ID, log in to the Cloudflare dashboard > select your zone in Account Home > find your account ID in Overview under **API** on the right-side menu. If you have not added a zone, add one by selecting **Add site** . You can purchase a domain from [Cloudflare’s registrar](https://developers.cloudflare.com/registrar/). + +### Generate an API Token +To generate an API token: +1. Log in to the Cloudflare dashboard. +2. Select My Profile from the dropdown menu of your user icon on the top right of your dashboard. +3. Select API Tokens > Create Token. +4. Under Custom Token, select Get started. +5. Name your API Token in the Token name field. +6. Under Permissions, select Account, Cloudflare Pages and Edit: +7. Select Continue to summary > Create Token. + More information can be found on [our guide for making Direct Upload deployments with continous integration](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#use-github-actions). From cae8c6849d08a1867b046559887bdc062e5ef3f1 Mon Sep 17 00:00:00 2001 From: Obinna Ekwuno Date: Fri, 20 May 2022 18:29:07 +0100 Subject: [PATCH 2/2] Update README.md Co-authored-by: Greg Brimble --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ab6d30b..8f1a53a 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ GitHub Action for creating Cloudflare Pages deployments, using the new [Direct U ### Get account ID To find your account ID, log in to the Cloudflare dashboard > select your zone in Account Home > find your account ID in Overview under **API** on the right-side menu. If you have not added a zone, add one by selecting **Add site** . You can purchase a domain from [Cloudflare’s registrar](https://developers.cloudflare.com/registrar/). +If you do not have a zone registered to your account, you can also get your account ID from the `pages.dev` URL. E.g: `https://dash.cloudflare.com//pages` + ### Generate an API Token To generate an API token: 1. Log in to the Cloudflare dashboard.