File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ jobs:
55
55
# hashFiles returns an empty string if there are no files
56
56
if : hashFiles('./site/*')
57
57
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
59
62
with :
60
63
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
61
64
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 }}
66
66
- name : Comment Deploy
67
67
run : python ./scripts/deploy_docs_status.py
68
68
env :
You can’t perform that action at this time.
0 commit comments