Skip to content

fix asset paths for deploy #5

fix asset paths for deploy

fix asset paths for deploy #5

Workflow file for this run

name: Deploy Vite App to GitHub Pages
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js and Yarn
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # Use the desired Node.js version
cache: "yarn"
# Install dependencies with Yarn
- name: Install dependencies
run: yarn install
# Build the Vite project
- name: Build project
run: yarn build
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist