Skip to content

Commit 681ef7e

Browse files
committed
Update documentation and GitHub Actions workflow for Cloudflare Pages deployment. Add CLOUDFLARE_PAGES_PROJECT_NAME secret requirement and clarify project name setup in README. Remove project name input from workflow configuration.
1 parent 90de1b6 commit 681ef7e

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Deploy Docs to Cloudflare Pages
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
project_name:
7-
description: Cloudflare Pages project name
8-
required: true
9-
default: pple-design-systems-docs
105

116
concurrency:
127
group: deploy-docs-${{ github.ref }}
@@ -39,6 +34,6 @@ jobs:
3934
with:
4035
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4136
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42-
projectName: ${{ inputs.project_name }}
37+
projectName: ${{ secrets.CLOUDFLARE_PAGES_PROJECT_NAME }}
4338
directory: apps/docs/dist
4439
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ Vite + React Router v7 SPA. Imports `@pplethai/components` via `workspace:*` (us
7272
## Publishing & CI
7373

7474
- Releases use [Changesets](https://github.com/changesets/changesets). Requires `NPM_TOKEN` in GitHub secrets.
75-
- Docs are deployed to Cloudflare Pages via a manual GitHub Actions workflow (`CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID` secrets required).
75+
- Docs are deployed to Cloudflare Pages via a manual GitHub Actions workflow (`CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_PAGES_PROJECT_NAME` secrets required).

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ Run **Deploy Docs to Cloudflare Pages** from the Actions tab (manual workflow).
5656

5757
- `CLOUDFLARE_API_TOKEN` — API token with **Cloudflare Pages — Edit** permission
5858
- `CLOUDFLARE_ACCOUNT_ID` — your Cloudflare account ID
59+
- `CLOUDFLARE_PAGES_PROJECT_NAME` — Cloudflare Pages project name (e.g. `pple-design-systems-docs`)
5960

60-
Create a Pages project (default name `pple-design-systems-docs`, or pass a different name when triggering the workflow).
61+
Create a Pages project with the same name as `CLOUDFLARE_PAGES_PROJECT_NAME` before deploying.
6162

6263
## License
6364

0 commit comments

Comments
 (0)