Skip to content

Commit 8c47d8a

Browse files
committed
try different action
1 parent a08ebde commit 8c47d8a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)