fix build and serverless READMEs

This commit is contained in:
Brandon Liu
2022-11-23 12:06:26 +08:00
parent 6b36663d10
commit ce6a4dbe0a
3 changed files with 9 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ jobs:
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
- run: cd serverless/aws && npm install && npm run build && cp dist/lambda_function.zip ../../app/dist
- run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist
- run: cd serverless/cloudflare && cp wrangler.toml.example wrangler.toml && npm install && npm run build && cp dist/index.js ../../app/dist
- run: cd spec/v3 && cp *.pmtiles ../../app/dist
- run: cd js/examples && mkdir ../../app/dist/examples && cp *.html ../../app/dist/examples/
- name: build_app