Skip to content

Commit 0f12e18

Browse files
committed
👷 Upgrade Cloudflare GitHub Action
1 parent 6476e4f commit 0f12e18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555
# hashFiles returns an empty string if there are no files
5656
if: hashFiles('./site/*')
5757
id: deploy
58-
uses: cloudflare/pages-action@v1
58+
env:
59+
PROJECT_NAME: typertiangolo
60+
BRANCH: ${{ ( github.event.workflow_run.head_repository.full_name == github.repository && github.event.workflow_run.head_branch == 'master' && 'main' ) || ( github.event.workflow_run.head_sha ) }}
61+
uses: cloudflare/wrangler-action@v3
5962
with:
6063
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6164
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
62-
projectName: typertiangolo
63-
directory: './site'
64-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
65-
branch: ${{ ( github.event.workflow_run.head_repository.full_name == github.repository && github.event.workflow_run.head_branch == 'master' && 'main' ) || ( github.event.workflow_run.head_sha ) }}
65+
command: pages deploy ./site --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
6666
- name: Comment Deploy
6767
run: python ./scripts/deploy_docs_status.py
6868
env:

0 commit comments

Comments
 (0)