Merge pull request #617 from bervProject/dependabot/github_actions/ac… #1352
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: install | |
| run: yarn --frozen-lockfile | |
| - name: Build | |
| run: | | |
| yarn build | |
| cp CNAME build/CNAME | |
| env: | |
| CI: true | |
| - name: Deploy 🚀 | |
| if: ${{ github.event_name == 'push' && matrix.node-version == '20.x'}} | |
| uses: JamesIves/github-pages-deploy-action@v4.7.4 | |
| with: | |
| BRANCH: gh-pages # The branch the action should deploy to. | |
| FOLDER: build # The folder the action should deploy. | |
| CLEAN: true # Automatically remove deleted files from the deploy branch |