Skip to content

Commit

Permalink
chore: migrate docs to koishijs/koishijs.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 28, 2022
1 parent 083034d commit 6e3a66a
Show file tree
Hide file tree
Showing 190 changed files with 0 additions and 16,048 deletions.
105 changes: 0 additions & 105 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Build
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: 30 1/6 * * *

jobs:
prepare:
Expand Down Expand Up @@ -147,105 +144,3 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/coverage-final.json
name: codecov

docs:
runs-on: ubuntu-latest
needs:
- prepare
- build

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Restore Lockfile
uses: actions/cache@v2
with:
path: yarn.lock
key: yarn-lock-${{ github.sha }}
- name: Restore Cache
uses: actions/cache@v2
with:
path: ${{ needs.prepare.outputs.cache-dir }}
key: yarn-cache-${{ github.sha }}-node-16
- name: Install
run: yarn
- name: Download
uses: actions/download-artifact@v3
with:
name: packages
- name: Checkout koishi-plugin-dialogue
uses: actions/checkout@v3
with:
repository: koishijs/koishi-plugin-dialogue
path: external/dialogue
- name: Checkout koishi-plugin-eval
uses: actions/checkout@v3
with:
repository: koishijs/koishi-plugin-eval
path: external/eval
- name: Checkout koishi-plugin-github
uses: actions/checkout@v3
with:
repository: koishijs/koishi-plugin-github
path: external/github
- name: Create Symlinks
run: |
ln -s ../../external/dialogue/docs ./docs/community/dialogue
ln -s ../../external/eval/docs ./docs/community/eval
ln -s ../../external/github/docs ./docs/community/github
- name: Build
run: yarn docs build
- name: Deploy
if: ${{ github.repository == 'koishijs/koishi' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: docs/.vuepress/dist
publish_branch: master
external_repository: koishijs/koishijs.github.io
force_orphan: true

docs-next:
runs-on: ubuntu-latest
needs:
- prepare
- build

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Restore Lockfile
uses: actions/cache@v2
with:
path: yarn.lock
key: yarn-lock-${{ github.sha }}
- name: Restore Cache
uses: actions/cache@v2
with:
path: ${{ needs.prepare.outputs.cache-dir }}
key: yarn-cache-${{ github.sha }}-node-16
- name: Install
run: yarn
- name: Download
uses: actions/download-artifact@v3
with:
name: packages
- name: Build
run: yarn docs build
- name: Deploy
if: ${{ github.repository == 'koishijs/koishi' && github.ref == 'refs/heads/next' }}
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_NEXT }}
publish_dir: docs/.vuepress/dist
publish_branch: master
external_repository: koishijs/next
force_orphan: true
31 changes: 0 additions & 31 deletions docs/.vuepress/build/index.ts

This file was deleted.

26 changes: 0 additions & 26 deletions docs/.vuepress/clientAppEnhance.js

This file was deleted.

190 changes: 0 additions & 190 deletions docs/.vuepress/components/ChatMessage.vue

This file was deleted.

Loading

0 comments on commit 6e3a66a

Please sign in to comment.