mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 12:55:08 +00:00
Recommended vitepress workflow
This commit is contained in:
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-three-d-mockup",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "📱 A 3D phone mockup component to showcase your apps",
|
||||
"author": "Anatoly Kopyl <akopyl@radner.ru>",
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user