Skip to content

chore(deps): update dependency @vue/eslint-config-typescript to v12 (… #84

chore(deps): update dependency @vue/eslint-config-typescript to v12 (…

chore(deps): update dependency @vue/eslint-config-typescript to v12 (… #84

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: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
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 "action@github.com"
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