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:
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 : sqlmodel
60+ BRANCH : ${{ ( github.event.workflow_run.head_repository.full_name == github.repository && github.event.workflow_run.head_branch == 'main' && '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 : sqlmodel
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 == 'main' && '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 :
You can’t perform that action at this time.
0 commit comments