Skip to content

Delete .github/workflows/main.yml #2

Delete .github/workflows/main.yml

Delete .github/workflows/main.yml #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
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
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# The base path is already configured in vite.config.ts, so no need to set it here again.
# If it wasn't, we might need to set a CNAME or adjust the base path in the build step.