File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments