Skip to content

Commit a2cf636

Browse files
authored
Merge pull request #566 from algorandfoundation/chore/cloudflare-prod-deploy
2 parents f53770d + 9fa8b16 commit a2cf636

File tree

6 files changed

+31
-23
lines changed

6 files changed

+31
-23
lines changed

.github/workflows/release-web.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ on:
1919
required: true
2020
type: string
2121
secrets:
22-
NETLIFY_SITE_ID:
22+
CLOUDFLARE_API_TOKEN:
2323
required: true
24-
NETLIFY_AUTH_TOKEN:
24+
CLOUDFLARE_ACCOUNT_ID:
2525
required: true
2626

2727
concurrency: deploy-to-production
@@ -42,6 +42,9 @@ jobs:
4242
name: app-build
4343
path: artifacts/website
4444

45-
- name: Deploy website to Netlify
46-
run: |
47-
npx [email protected] deploy --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --dir artifacts/website --prod --no-build
45+
- name: Deploy to Cloudflare
46+
uses: cloudflare/wrangler-action@v3
47+
with:
48+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
49+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
50+
command: pages deploy artifacts/website --project-name=algokit-lora --branch=release

.nsprc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
{
22
"1112496": {
33
"active": true,
4-
"expiry": "2026-02-15",
4+
"expiry": "2026-04-15",
55
"notes": "undici vulnerability in @actions/http-client (semantic-release dep). No fix in v5 line, fix requires major version bump to v6.23.0+."
66
},
77
"1112659": {
88
"active": true,
9-
"expiry": "2026-02-15",
9+
"expiry": "2026-04-15",
1010
"notes": "tar version 7.5.4 is bundled inside npm (semantic-release/npm) and can't be override. We need to wait for a fix from npm"
1111
},
1212
"1112954": {
1313
"active": true,
14-
"expiry": "2026-02-15",
14+
"expiry": "2026-04-15",
1515
"notes": "@isaacs/brace-expansion version 5.0.0 is bundled inside npm and can't be override. We need to wait for a fix from npm"
16+
},
17+
"1113214": {
18+
"active": true,
19+
"expiry": "2026-04-15",
20+
"notes": "ajv ReDoS advisory. Temporary exception while dependency updates are scheduled."
21+
},
22+
"1113249": {
23+
"active": true,
24+
"expiry": "2026-04-15",
25+
"notes": "tar is a transitive dependency of @semantic-release/npm: npm bundled in @semantic-release/npm - need semantic release to update their dependency on npm to a version that includes the fix for tar 7.5.4"
26+
},
27+
"1113296": {
28+
"active": true,
29+
"expiry": "2026-04-15",
30+
"notes": "npm version 10.8.0 is bundled inside @semantic-release/npm and can't be override. We need to wait for a fix from npm"
1631
}
1732
}

_headers

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/assets/*
2+
Cache-Control: max-age=31536000, immutable

_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

netlify.toml

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "run-s build:[0-9]*",
9-
"build:dev": "run-s build:0-clean build:1-icons build:2-svg build:3-tsc build:4-vite:dev build:5-netlify",
9+
"build:dev": "run-s build:0-clean build:1-icons build:2-svg build:3-tsc build:4-vite:dev build:5-cloudflare",
1010
"build:0-clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('src/features/common/components/icons',{recursive:true,force:true}); fs.rmSync('src/features/common/components/svg',{recursive:true,force:true})\"",
1111
"build:1-icons": "npx --yes @svgr/cli --config-file .svgrrc.cjs --icon --typescript --out-dir src/features/common/components/icons src/assets/icons --no-index --filename-case kebab --jsx-runtime automatic",
1212
"build:2-svg": "npx --yes @svgr/cli --config-file .svgrrc.cjs --typescript --out-dir src/features/common/components/svg src/assets/svg --no-index --filename-case kebab --jsx-runtime automatic",
1313
"build:3-tsc": "tsc",
1414
"build:4-vite": "vite build",
1515
"build:4-vite:dev": "vite build --mode development",
16-
"build:5-netlify": "cpy netlify.toml dist",
16+
"build:5-cloudflare": "cpy _redirects _headers dist",
1717
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
1818
"lint:fix": "npm run lint -- --fix",
1919
"preview": "vite preview",

0 commit comments

Comments
 (0)