Skip to content

chore: update vitepress (#1109) #99

chore: update vitepress (#1109)

chore: update vitepress (#1109) #99

Workflow file for this run

name: Website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: deploy website
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install website dependencies
run: pnpm install
working-directory: ./website
- name: Build website
run: pnpm build
working-directory: ./website
- name: Make CNAME file
run: |
cd ./website/src/.vitepress/dist
echo "vue-chartjs.org" > CNAME
- name: Prepare build
run: |
cd ./website/src/.vitepress/dist
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Push build
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./website/src/.vitepress/dist