1- name : Deploy beta to Netlify
1+ name : Deploy beta to Cloudflare
22
33on :
44 # Trigger the workflow every time you push to the `main` branch
@@ -18,27 +18,19 @@ jobs:
1818 build-deploy :
1919 runs-on : ubuntu-latest
2020 steps :
21-
2221 - name : Checkout your repository using git
2322 uses : actions/checkout@v4
24-
25- - name : Install, build, and upload your site output
26- env :
27- NODE_OPTIONS : " --max_old_space_size=4096"
28- uses : withastro/action@v2
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
2925 with :
30- node-version : 22
31-
32- - name : Deploy to Netlify
33- uses : nwtgck/actions-netlify@v3.0
26+ node-version : ' 22'
27+ - name : Install dependencies
28+ run : npm ci
29+ - name : Build website
30+ run : npm run build
31+ - name : Deploy to Cloudflare Workers
32+ uses : cloudflare/wrangler-action@v3
3433 with :
35- publish-dir : ' ./dist'
36- production-branch : " 2.0"
37- github-token : ${{ secrets.GITHUB_TOKEN }}
38- deploy-message : " Deploy from GitHub Actions"
39- enable-pull-request-comment : false
40- enable-commit-comment : false
41- overwrites-pull-request-comment : false
42- env :
43- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
44- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
34+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
35+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36+ environment : beta
0 commit comments