Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to Cloudflare Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: astral-sh/setup-uv@v5

- run: uv sync

- run: uv run lektor build --output-path build

- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy build --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
*.glif
node_modules/

# uv
.venv/

# font files
assets/static/fonts
content/tutorials/variable-waterfall-poster-1/dictionaries/*.json
Expand Down
4 changes: 0 additions & 4 deletions Python for designers.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name = Python for designers
url_style = absolute
url = http://www.pythonfordesigners.com/

[packages]
lektor-jinja-content = 0.4.2
lektor-gulp = 0.3.2

[servers.dev]
name = dev
enabled = yes
Expand Down
Loading