Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Update vite.config.js #3

Update vite.config.js

Update vite.config.js #3

# Sample workflow for building and deploying a React app with npm to GitHub Pages
name: Deploy React App to GitHub Pages
on:
push:
branches: ["master"] # Change to "main" if your default branch is main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist # Change this to `./build` if you're using Create React App
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4