From 1aa22e72ae57fa0a5df3ac861fc794334fca8f72 Mon Sep 17 00:00:00 2001 From: Angelo Rodrigues Date: Wed, 25 Jan 2023 10:07:49 -0500 Subject: [PATCH] build bundle.js in deployment to github pages Instead of committing the built file locally, this does the build in GitHub Actions/ --- .github/workflows/static.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 6a8b68c..44320d0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -32,6 +32,12 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v2 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18.7.0 + - run: NODE_ENV=production npm i + - run: ENVIRONMENT=production npm run build - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: -- 2.25.1