Skip to content

Update 2024-03-01_vite-press-plugin.md #25

Update 2024-03-01_vite-press-plugin.md

Update 2024-03-01_vite-press-plugin.md #25

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: 'action@github.com'