{"id":16252405,"url":"https://github.com/remarkablemark/cloudflare-pages-action-demo","last_synced_at":"2026-04-11T08:03:51.411Z","repository":{"id":166249425,"uuid":"641718530","full_name":"remarkablemark/cloudflare-pages-action-demo","owner":"remarkablemark","description":":cloud: Cloudflare Pages GitHub Action demo","archived":false,"fork":false,"pushed_at":"2023-05-25T18:18:16.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T08:45:46.134Z","etag":null,"topics":["actions","cloudflare","cloudflare-pages","demo","github","github-actions","pages","site","website"],"latest_commit_sha":null,"homepage":"https://cloudflare-pages-action-demo.pages.dev","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remarkablemark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["remarkablemark"],"patreon":"remarkablemark","open_collective":null,"ko_fi":"remarkablemark","tidelift":null,"community_bridge":null,"liberapay":"remarkablemark","issuehunt":null,"otechie":null,"custom":["https://b.remarkabl.org/teespring"]}},"created_at":"2023-05-17T03:00:39.000Z","updated_at":"2023-10-16T02:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"816437c9-8f12-4fa8-82e5-e0fcffbc2120","html_url":"https://github.com/remarkablemark/cloudflare-pages-action-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fcloudflare-pages-action-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fcloudflare-pages-action-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fcloudflare-pages-action-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fcloudflare-pages-action-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablemark","download_url":"https://codeload.github.com/remarkablemark/cloudflare-pages-action-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247845897,"owners_count":21005923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cloudflare","cloudflare-pages","demo","github","github-actions","pages","site","website"],"created_at":"2024-10-10T15:13:36.095Z","updated_at":"2026-04-11T08:03:46.379Z","avatar_url":"https://github.com/remarkablemark.png","language":"HTML","funding_links":["https://github.com/sponsors/remarkablemark","https://patreon.com/remarkablemark","https://ko-fi.com/remarkablemark","https://liberapay.com/remarkablemark","https://b.remarkabl.org/teespring"],"categories":[],"sub_categories":[],"readme":"# cloudflare-pages-action-demo\n\n[![publish-to-cloudflare-pages](https://github.com/remarkablemark/cloudflare-pages-action-demo/actions/workflows/publish-to-cloudflare-pages.yml/badge.svg)](https://github.com/remarkablemark/cloudflare-pages-action-demo/actions/workflows/publish-to-cloudflare-pages.yml)\n\n[Cloudflare Pages GitHub Action](https://github.com/cloudflare/pages-action) demo.\n\n## Setup\n\n[Login to Cloudflare](https://www.cloudflare.com/).\n\n### API Token\n\nGo to [My Profile](https://dash.cloudflare.com/profile) \u003e [API Tokens](https://dash.cloudflare.com/profile/api-tokens) \u003e [Create Token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) \u003e enter **Token name**:\n\n```\nCloudflare Pages\n```\n\nAdd **Permissions**:\n\n| Type | Service | Permission |\n| --- | --- | --- |\n| Account | Cloudflare Pages | Edit |\n\nClick **Continue to summary** \u003e **Create Token**.\n\nCopy the API token and save it in your repository's **Settings** \u003e **Secrets and variables** \u003e **Actions** \u003e **New repository secret**:\n\n```\nCLOUDFLARE_PAGES_API_TOKEN\n```\n\nRepeat the step above for **Dependabot**.\n\n### Account ID\n\nCopy your [Cloudflare's account ID](https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/find-account-and-zone-ids/) by going to the [dashboard](https://dash.cloudflare.com/), navigating to **Workers**, or copying it from the browser URL:\n\n```\nhttps://dash.cloudflare.com/abcdef1234567890abcdef1234567890\n```\n\n\u003e Your account ID is a hexadecimal string that looks like `abcdef1234567890abcdef1234567890`\n\nCreate a **New repository secret** like the previous step:\n\n```\nCLOUDFLARE_ACCOUNT_ID\n```\n\n### Pages\n\nGo to **Pages** \u003e **Create a project** \u003e **Direct Upload** and name the project after your repository.\n\n\u003e You can also use **Connect to Git** but you'll need to disable automatic deployments on production and preview branches.\n\n### Action\n\nCreate the workflow file:\n\n```sh\ntouch .github/workflows/publish-to-cloudflare-pages.yml\n```\n\nUpdate the workflow:\n\n```yaml\nname: publish-to-cloudflare-pages\non: push\n\npermissions:\n  contents: read\n  deployments: write\n\njobs:\n  publish-to-cloudflare-pages:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v3\n\n      - name: Publish to Cloudflare Pages\n        uses: cloudflare/pages-action@v1\n        with:\n          apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}\n          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}\n          projectName: ${{ github.event.repository.name }}\n          directory: public\n          gitHubToken: ${{ github.token }}\n```\n\nMake sure to update the asset `directory` for your project.\n\nSave the action and it should deploy your project to Cloudflare Pages! :rocket:\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fcloudflare-pages-action-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablemark%2Fcloudflare-pages-action-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fcloudflare-pages-action-demo/lists"}