Skip to content

Commit

Permalink
ci: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
atty303 committed May 10, 2024
1 parent ee1324d commit a87741b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:

- uses: oven-sh/setup-bun@v1
- uses: mymindstorm/setup-emsdk@v14
with:
actions-cache-folder: .emsdk-cache
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Cache node_modules
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"preview": "vite preview",
"deploy": "DEPLOYMENT=cloudflare bun run build && bun run deploy:pages && bun run deploy:r2",
"deploy:pages": "bun -e \"require('fs').rmSync('dist-pages', {recursive:true})\" && copyfiles -u 1 \"dist/**/*\" dist-pages/ && wrangler pages deploy dist-pages --project-name pob-web",
"deploy:r2": "aws s3 cp --region auto --endpoint-url https://621480c42e70995622a2d0a86bb7751c.r2.cloudflarestorage.com --recursive --exclude '*' --include '.r2-*' dist/ s3://pob-web/asset/"
"deploy:r2": "aws s3 cp --region auto --endpoint-url https://621480c42e70995622a2d0a86bb7751c.r2.cloudflarestorage.com --recursive --exclude '*' --include '.r2-*' --no-progress dist/ s3://pob-web/asset/"
}
}

0 comments on commit a87741b

Please sign in to comment.