Browse Source

👷 Update Cloudflare GitHub Action (#12387)

pull/12392/head
Sebastián Ramírez 6 months ago
committed by GitHub
parent
commit
9d6ec4aa77
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      .github/workflows/deploy-docs.yml

10
.github/workflows/deploy-docs.yml

@ -55,14 +55,14 @@ jobs:
# hashFiles returns an empty string if there are no files # hashFiles returns an empty string if there are no files
if: hashFiles('./site/*') if: hashFiles('./site/*')
id: deploy id: deploy
uses: cloudflare/pages-action@v1 env:
PROJECT_NAME: fastapitiangolo
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 ) }}
uses: cloudflare/wrangler-action@v3
with: with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: fastapitiangolo command: pages deploy ./site --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
directory: './site'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
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 ) }}
- name: Comment Deploy - name: Comment Deploy
run: python ./scripts/deploy_docs_status.py run: python ./scripts/deploy_docs_status.py
env: env:

Loading…
Cancel
Save