File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-latest
1414 name : Deploy
1515 permissions :
16+ actions : read
1617 contents : read
1718 deployments : write
19+ pull-requests : write
1820 steps :
1921 - uses : actions/checkout@v4
2022 - name : Setup yarn
@@ -27,10 +29,13 @@ jobs:
2729 yarn install
2830 yarn build
2931 - name : Deploy
30- uses : cloudflare/wrangler-action @v3
32+ uses : andykenward/github-actions-cloudflare-pages @v3.0.0
3133 with :
32- apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
33- accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
34- command : pages deploy out --project-name=rescript-lang-org
35- # Optional: Enable this if you want to have GitHub Deployments triggered
36- gitHubToken : ${{ secrets.GITHUB_TOKEN }}
34+ cloudflare-api-token : ${{ secrets.CLOUDFLARE_API_TOKEN }}
35+ cloudflare-account-id : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36+ cloudflare-project-name : rescript-lang-org
37+ github-token : ${{ secrets.GITHUB_TOKEN }}
38+ github-environment : ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/master' && '(Production)') || '(Preview)' }}
39+ directory : ./out
40+
41+
You can’t perform that action at this time.
0 commit comments