Skip to content

Commit 3592318

Browse files
committed
go back to official action
1 parent 5679978 commit 3592318

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
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
@@ -13,10 +18,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)