From e5bc16e676a1c45ec09842a9c7cce8d04b1483a8 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 13 Apr 2024 15:44:55 -0400 Subject: [PATCH] Test deploys --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 37523f3..1bb194b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,9 @@ jobs: name: Development Build if: github.ref != 'refs/heads/main' runs-on: ubuntu-latest + permissions: + contents: read + deployments: write steps: - name: Checkout main @@ -19,10 +22,23 @@ jobs: BUILD_ONLY: true BUILD_FLAGS: --drafts + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: ewpratten + directory: public + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + wranglerVersion: '3' + build_prod: name: Production Build if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest + permissions: + contents: read + deployments: write steps: - name: Checkout main @@ -32,3 +48,13 @@ jobs: uses: shalzz/zola-deploy-action@v0.18.0 env: BUILD_ONLY: true + + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: ewpratten + directory: public + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + wranglerVersion: '3' \ No newline at end of file