mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-28 18:16:25 -05:00
Automate asset browser deployment
This commit is contained in:
1
.github/workflows/build-frontend.yml
vendored
1
.github/workflows/build-frontend.yml
vendored
@@ -25,3 +25,4 @@ jobs:
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run assets-browser:deploy:dry-run
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"build": "vite build",
|
||||
"assets-browser:dev": "wrangler dev --local --var LOCAL_DEVELOPMENT:true --persist-to .wrangler/state --cwd workers/assets-directory-browser",
|
||||
"assets-browser:test": "vitest run --config workers/assets-directory-browser/vitest.config.mjs",
|
||||
"assets-browser:dry-run": "wrangler deploy --dry-run --cwd workers/assets-directory-browser",
|
||||
"assets-browser:deploy": "wrangler deploy --cwd workers/assets-directory-browser",
|
||||
"assets-browser:deploy:dry-run": "wrangler deploy --dry-run --cwd workers/assets-directory-browser",
|
||||
"preview": "vite preview --port 5050",
|
||||
"lint": "eslint .",
|
||||
"lint-fix": "npm run lint -- --fix",
|
||||
|
||||
@@ -64,9 +64,15 @@ connects to the production bucket.
|
||||
|
||||
```sh
|
||||
npm run assets-browser:test
|
||||
npm run assets-browser:dry-run
|
||||
npm run assets-browser:deploy:dry-run
|
||||
```
|
||||
|
||||
`npm run assets-browser:deploy` performs the production deployment. Production
|
||||
deployments are handled by Cloudflare Workers Builds, configured from the
|
||||
repository root with `main` as the production branch,
|
||||
`npm run assets-browser:test` as the build command, and
|
||||
`npm run assets-browser:deploy` as the deploy command.
|
||||
|
||||
## Production rollout
|
||||
|
||||
Do not create the URL Rewrite Rule until the Worker route has been deployed and
|
||||
|
||||
Reference in New Issue
Block a user