Skip to content

Commit

Permalink
docs: develop and guide
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Jan 21, 2024
1 parent adc3a18 commit 60e0d4e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15,261 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,36 @@ on:
push:
branches:
- docs
workflow_dispatch:

jobs:
deploy:
docs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Build VuePress site
run: pnpm docs:build

- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: kotorijs/kotori
TARGET_BRANCH: main
BUILD_SCRIPT: yarn && yarn build
BUILD_DIR: docs/.vuepress/dist
CNAME: https://kotori.js.org
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: main
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 60e0d4e

Please sign in to comment.