From e1c249640292424afd441853dae89271605ab835 Mon Sep 17 00:00:00 2001 From: Timur Bazhirov Date: Wed, 15 Jan 2025 13:46:21 -0800 Subject: [PATCH] chore: add deploy build step --- .github/workflows/cicd.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 56a7aff..8faac6d 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -80,3 +80,36 @@ jobs: github-token: ${{ secrets.BOT_GITHUB_TOKEN }} verify-tests: false npm-options: "--legacy-peer-deps" + + deploy-bundle: + needs: [publish] + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 20.x + steps: + - uses: actions/checkout@v4 + with: + lfs: true + + - name: Setup NodeJS + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org + + - name: Build + shell: bash -l {0} + run: | + npm run build + + - name: Deploy Build + uses: peaceiris/actions-gh-pages@v3 + # If you're changing the branch from main, + # also change the `main` in `refs/heads/main` + # below accordingly. + # if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build