From 14a9c4fd93c3a4dbb0e3560f24b96c024590a877 Mon Sep 17 00:00:00 2001 From: rina Date: Wed, 4 Sep 2024 14:38:05 +1000 Subject: [PATCH] add cloudflare deploy --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb37a7c..1d9f0ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,23 @@ jobs: name: aslp-web-build path: artifact + deploy: + needs: [ build ] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + name: aslp-web-build + path: result + - uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} + directory: result + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + wranglerVersion: '3' + test: needs: [ build ] strategy: