Skip to content

Build and Deploy

Build and Deploy #12

name: Build and Deploy
on:
push:
branches:
- package # or your default branch
permissions: write-all
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.13.0' # Directly specify Node.js version
- name: Install Dependencies
run: npm install
- name: Build
run: npx vite build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # Deploying to a branch named gh-pages
folder: dist # Folder where Vite builds the project, might be different depending on your vite.config.js