Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Bump vite from 2.9.15 to 2.9.16 (#108) #695

Bump vite from 2.9.15 to 2.9.16 (#108)

Bump vite from 2.9.15 to 2.9.16 (#108) #695

Workflow file for this run

name: Build Docs Content
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Clear dist folder
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
rm -rf docs/.vitepress/dist/
- name: Install and build
run: |
npm install
npm run docs:build
- name: Copy release files for permalinks
run: |
cp docs/.vitepress/cp-rename.sh docs/.vitepress/dist/releases/cp-rename.sh
cd docs/.vitepress/dist/releases
chmod +x ./cp-rename.sh
./cp-rename.sh
ls -l
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist
user_name: 'GitHub Action'
user_email: 'action@github.com'