Skip to content

Commit 4c04205

Browse files
Update build system (#20)
* Migrate dependency management to uv and configure Lektor build - Add pyproject.toml with lektor and plugins (lektor-jinja-content, lektor-gulp) as uv-managed dependencies - Remove [packages] section from .lektorproject since plugins are now installed via uv into the project venv - Add .venv/ to .gitignore; commit uv.lock for reproducible installs - Build with: uv sync && uv run lektor build https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * Add GitHub Actions workflow to deploy to Cloudflare Pages on merge to master Builds the Lektor site with uv and deploys to Cloudflare Pages using wrangler. Requires these GitHub secrets/variables: - CLOUDFLARE_API_TOKEN (secret) - CLOUDFLARE_ACCOUNT_ID (secret) - CLOUDFLARE_PROJECT_NAME (variable) https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * Deploy develop branch to dev preview on Cloudflare Pages Trigger the workflow on both master and develop branches. Pass --branch to wrangler so Cloudflare Pages treats master as production and develop as a preview deployment. https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * Rename master to main in deploy workflow https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * adjust footer * update build system --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9ba363f commit 4c04205

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Deploy to Cloudflare Pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
7+
- develop
78

89
jobs:
910
deploy:
@@ -31,4 +32,7 @@ jobs:
3132
with:
3233
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3334
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
34-
command: pages deploy build --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
35+
command: >-
36+
pages deploy build
37+
--project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
38+
--branch=${{ github.ref_name }}

0 commit comments

Comments
 (0)