Skip to content

Commit dfb673e

Browse files
committed
2 parents 4bd7500 + 522b4b2 commit dfb673e

File tree

10 files changed

+5126
-3095
lines changed

10 files changed

+5126
-3095
lines changed

.github/workflows/beta_deploy.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,18 @@ jobs:
1818
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
21+
- uses: actions/setup-node@v6.3.0
22+
with:
23+
node-version: 22.22.x
2224
- name: Checkout your repository using git
2325
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
29-
30-
- name: Deploy to Netlify
31-
uses: nwtgck/actions-netlify@v3.0
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build website
29+
run: npm run build
30+
- name: Deploy to Cloudflare Workers
31+
uses: cloudflare/wrangler-action@v3
3232
with:
33-
publish-dir: './dist'
34-
production-branch: "2.0"
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
36-
deploy-message: "Deploy from GitHub Actions"
37-
enable-pull-request-comment: false
38-
enable-commit-comment: false
39-
overwrites-pull-request-comment: false
40-
env:
41-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
42-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35+
environment: beta

.github/workflows/deploy.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,20 @@ permissions:
1515
id-token: write
1616

1717
jobs:
18-
build:
18+
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/setup-node@v6.3.0
22+
with:
23+
node-version: 22.22.x
2124
- name: Checkout your repository using git
2225
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-
with:
28-
node-version: 22
29-
30-
deploy:
31-
needs: build
32-
runs-on: ubuntu-latest
33-
environment:
34-
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
36-
steps:
37-
- name: Deploy to GitHub Pages
38-
id: deployment
39-
uses: actions/deploy-pages@v4
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build website
29+
run: npm run build
30+
- name: Deploy to Cloudflare Workers
31+
uses: cloudflare/wrangler-action@v3
32+
with:
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ playwright-report/
2929
test-results/
3030

3131
# Don't commit custom dev builds
32-
public/p5.min.js
32+
public/p5.min.js
33+
34+
.zed

0 commit comments

Comments
 (0)