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 name: Build Docs
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- id: Build-Docs - uses: actions/setup-node@v3
run: | with:
yarn install --frozen-lockfile node-version: 16
yarn docs:build cache: yarn
cd docs/.vitepress/dist - run: yarn install --frozen-lockfile
git config --global user.name "anatolykopyl"
git init - name: Build
git add -A run: yarn docs:build
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 - name: Deploy
shell: bash uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist

View File

@@ -1,6 +1,6 @@
{ {
"name": "vue-three-d-mockup", "name": "vue-three-d-mockup",
"version": "1.0.0", "version": "1.0.1",
"description": "📱 A 3D phone mockup component to showcase your apps", "description": "📱 A 3D phone mockup component to showcase your apps",
"author": "Anatoly Kopyl <akopyl@radner.ru>", "author": "Anatoly Kopyl <akopyl@radner.ru>",
"keywords": [ "keywords": [