Recommended vitepress workflow

This commit is contained in:
2022-07-24 15:33:03 +03:00
parent a49762b97f
commit 2f4a4495ed
2 changed files with 15 additions and 12 deletions

View File

@@ -6,14 +6,17 @@ jobs:
name: Build Docs
steps:
- uses: actions/checkout@v2
- id: Build-Docs
run: |
yarn install --frozen-lockfile
yarn docs:build
cd docs/.vitepress/dist
git config --global user.name "anatolykopyl"
git init
git add -A
git commit -m "Deploy to GitHub Pages"
git push -f https://anatolykopyl:${{ secrets.GITHUB_TOKEN }}@github.com/anatolykopyl/vue-three-d-mockup.git master:gh-pages
shell: bash
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- run: yarn install --frozen-lockfile
- name: Build
run: yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist