From 95bdb57dce9deb1dde9db5fb897e80cd0a1457a7 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 28 Jul 2022 12:14:32 +0800 Subject: [PATCH] build serverless packages as part of gh-pages CI --- .github/workflows/actions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 210e1b9..264d087 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -21,6 +21,8 @@ jobs: - run: cd js && npm install && npm run build - 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 && 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 uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/master' }}