From 7fe73e351f7ae0a64b1b94e3ffec9082be8aca39 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 28 Jun 2026 03:29:01 +0000 Subject: [PATCH] release to cloudflare as well (#448) Reviewed-on: https://gitea.com/gitea/docs/pulls/448 --- .gitea/workflows/build-and-publish.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index e55abec3..6dee6114 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -41,3 +41,11 @@ jobs: run: | aws s3 sync build/ s3://docs-gitea-com aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION}} --paths '/*' + - name: Copy files to Cloudflare Pages + env: + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + run: | + pnpm dlx wrangler@4 pages deploy build \ + --project-name docs-gitea-com \ + --branch main