chore(deps): update dependency vitepress to v1.4.1 (#849) #526
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: [main] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: Use PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: 7 | |
- name: Setup user | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name "Action" | |
- name: Build docs | |
run: | | |
cd docs | |
pnpm install | |
pnpm run docs:build | |
cd .vitepress/dist | |
git init | |
git add -A | |
git commit -m 'deploy' | |
- name: Deploy docs | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: 'docs' | |
force: true | |
directory: './docs/.vitepress/dist' |