build serverless packages as part of gh-pages CI

This commit is contained in:
Brandon Liu
2022-07-28 12:14:32 +08:00
parent c161c01322
commit 95bdb57dce

View File

@@ -21,6 +21,8 @@ jobs:
- run: cd js && npm install && npm run build - run: cd js && npm install && npm run build
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env - 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 app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
- run: cd serverless/aws && python create_lambda_function.py && cp lambda_function.zip ../../app/dist
- run: cd serverless/cloudflare && npm run build && cp dist/worker.js ../../app/dist
- name: build_app - name: build_app
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}