Skip to content

chore: add base path on vite config to deploy on gh-pages #2

chore: add base path on vite config to deploy on gh-pages

chore: add base path on vite config to deploy on gh-pages #2

name: Deploy React App
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Build React app
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist
clean: true
single-commit: true
token: ${{ secrets.GITHUB_TOKEN }}