Skip to content

Merge pull request #73 from cyrilf/dependabot/npm_and_yarn/vite-5.4.14 #42

Merge pull request #73 from cyrilf/dependabot/npm_and_yarn/vite-5.4.14

Merge pull request #73 from cyrilf/dependabot/npm_and_yarn/vite-5.4.14 #42

name: Build and Deploy to Github Pages
on:
push:
branches:
- main
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
commit_message: ${{ github.event.head_commit.message }}
exclude_assets: ".github,vue-dat-gui.png,types/**/*.d.ts"