mirror of
https://github.com/cloudflare/pages-action
synced 2024-11-11 22:48:01 +00:00
update readme to show how to get account ID and API token
This commit is contained in:
parent
a64f10c9b6
commit
27c5638d22
13
README.md
13
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).
|
||||
|
|
Loading…
Reference in a new issue