Merge pull request #215 from ssciwr/dependabot/npm_and_yarn/all-050de… #370
This file contains 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: Build and deploy to gh-pages | |
on: push | |
jobs: | |
build-and-deploy: | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "pnpm" | |
- run: pnpm install | |
- run: pnpm run build | |
- uses: JamesIves/github-pages-deploy-action@v4.6.8 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
name: Deploy to gh-pages | |
with: | |
branch: gh-pages | |
folder: dist | |
single-commit: true |