Skip to content

Update vite.config.markdown.ts #9

Update vite.config.markdown.ts

Update vite.config.markdown.ts #9

Workflow file for this run

name: Build Website
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Clear dist folder
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
rm -rf dist/
- name: Install and build
run: |
npm install
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'GitHub Action'
user_email: '[email protected]'