From a0b64ccf5fdaf452624d32fd5e2fcb40416c2617 Mon Sep 17 00:00:00 2001 From: Mak1ooowowo <96227977+Mak1owo@users.noreply.github.com> Date: Sun, 15 Jan 2023 15:33:36 +0800 Subject: [PATCH] [O] Deploy to Cloudflare Pages --- .github/workflows/generator.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generator.yml b/.github/workflows/generator.yml index 06d11618..8493c362 100644 --- a/.github/workflows/generator.yml +++ b/.github/workflows/generator.yml @@ -42,11 +42,13 @@ jobs: - name: Build run: yarn build - - name: Deploy to github pages - uses: JamesIves/github-pages-deploy-action@v4 + - name: Deploy 🚀 + uses: cloudflare/pages-action@v1 with: - branch: gh-pages - folder: dist + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: our-data + directory: dist - name: Check for document changes, ignoring comments uses: dorny/paths-filter@v2