cloudflare build

This commit is contained in:
2026-07-16 14:17:47 +03:00
parent 512a54ba2d
commit 741086acfd
6 changed files with 1609 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build site with Zola
run: docker run --rm -v ${{ github.workspace }}:/project -w /project ghcr.io/getzola/zola:v0.22.1 zola build
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Deploy to Cloudflare Workers
run: npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}