File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 44 branches :
55 - master
66 workflow_dispatch :
7+ inputs :
8+ environment :
9+ description : " Choose an environment to deploy to: <dev|staging|prod>"
10+ required : true
11+ default : " dev"
712 pull_request :
813 branches :
914 - master
1318 runs-on : ubuntu-latest
1419 name : Deploy
1520 permissions :
16- actions : read
1721 contents : read
1822 deployments : write
19- pull-requests : write
2023 steps :
2124 - uses : actions/checkout@v4
2225 - name : Setup yarn
@@ -29,12 +32,10 @@ jobs:
2932 - name : Build
3033 run : yarn build
3134 - name : Deploy
32- uses : andykenward/github-actions-cloudflare-pages @v3.0.0
35+ uses : cloudflare/wrangler-action @v3
3336 with :
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- working-directory : .
37+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
38+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
39+ command : pages deploy out --project-name=rescript-lang-org
40+ # Optional: Enable this if you want to have GitHub Deployments triggered
41+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments