File tree Expand file tree Collapse file tree 6 files changed +2499
-1085
lines changed
Expand file tree Collapse file tree 6 files changed +2499
-1085
lines changed Original file line number Diff line number Diff line change @@ -18,27 +18,13 @@ 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 : Build website
24+ run : npm run build
25+ - name : Deploy to Cloudflare Workers
26+ uses : cloudflare/wrangler-action@v3
2927 with :
30- node-version : 22
31-
32- - name : Deploy to Netlify
33- uses : nwtgck/actions-netlify@v3.0
34- 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 }}
28+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+ environment : beta
Original file line number Diff line number Diff line change @@ -15,23 +15,15 @@ permissions:
1515 id-token : write
1616
1717jobs :
18- build :
18+ build-deploy :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout your repository using git
2222 uses : actions/checkout@v4
23- - name : Install, build, and upload your site output
24- env :
25- NODE_OPTIONS : " --max_old_space_size=4096"
26- uses : withastro/action@v2
27-
28- deploy :
29- needs : build
30- runs-on : ubuntu-latest
31- environment :
32- name : github-pages
33- url : ${{ steps.deployment.outputs.page_url }}
34- steps :
35- - name : Deploy to GitHub Pages
36- id : deployment
37- uses : actions/deploy-pages@v4
23+ - name : Build website
24+ run : npm run build
25+ - name : Deploy to Cloudflare Workers
26+ uses : cloudflare/wrangler-action@v3
27+ with :
28+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Original file line number Diff line number Diff line change @@ -29,4 +29,5 @@ translator/
2929public /p5.min.js
3030
3131# optional local preferences for vscode
32- local.code-workspace
32+ local.code-workspace
33+ .zed
You can’t perform that action at this time.
0 commit comments