Skip to content

Commit c250d37

Browse files
committed
Try wrangler
1 parent 95b02c9 commit c250d37

2 files changed

Lines changed: 21 additions & 31 deletions

File tree

.github/workflows/pr-preview-deploy.yaml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,26 @@ jobs:
3636
run: pip install -r requirements.txt
3737
- name: Build docs
3838
run: mkdocs build
39-
- name: Deploy to Cloudflare Pages
40-
uses: andykenward/github-actions-cloudflare-pages@v3.0.0
39+
40+
- name: Deploy preview to Cloudflare Pages
4141
id: pages
42+
uses: cloudflare/wrangler-action@v3
4243
with:
43-
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
44-
cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
45-
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
46-
directory: site
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
48-
github-environment: Cloudflare Pages
44+
workingDirectory: site
45+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
46+
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
47+
command: >-
48+
pages deploy site
49+
--project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
50+
--branch=${{ github.event.workflow_run.head_branch }}
51+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
52+
# - name: Deploy to Cloudflare Pages
53+
# uses: andykenward/github-actions-cloudflare-pages@v3.0.0
54+
# id: pages
55+
# with:
56+
# cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
57+
# cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
58+
# cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
59+
# directory: site
60+
# github-token: ${{ secrets.GITHUB_TOKEN }}
61+
# github-environment: Cloudflare Pages

.github/workflows/pre-commit.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)