Skip to content

Commit

Permalink
chore: add deploy build step
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Jan 15, 2025
1 parent 9f181fe commit e1c2496
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e1c2496

Please sign in to comment.