Files
linearvoid/.gitea/workflows/pages-deploy.yml
T
zwitschi 24273b5513
Deploy to Cloudflare Pages / deploy (push) Failing after 1s
CD / deploy (push) Canceled after 51s
CI / docker (push) Canceled after 0s
CI / test (push) Canceled after 1m10s
fix: replace Cloudflare Pages action with direct API deploy using artifact
2026-08-10 11:36:06 +02:00

25 lines
760 B
YAML

name: Deploy to Cloudflare Pages
on:
push:
branches: ["main"]
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Create deployment artifact
run: tar -czf site.tgz -C frontend/dist .
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
curl -sS -X POST \
"https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/pages/projects/linearvoid/deployments" \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @site.tgz