Skip to content

Fix member.md

Fix member.md #3737

Workflow file for this run

name: Deploy
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- id: cache
name: Yarn Cache Dir
run: echo "value=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore Lockfile
uses: actions/cache@v3
with:
path: yarn.lock
key: yarn-lock-${{ github.sha }}
restore-keys: yarn-lock-
- name: Restore Cache
uses: actions/cache@v3
with:
path: ${{ steps.cache.outputs.value }}
key: yarn-cache-${{ github.sha }}
restore-keys: yarn-cache-
- name: Install
run: yarn
- name: Upload Lockfile
uses: actions/upload-artifact@v3
with:
name: lockfile
path: yarn.lock
- name: Build (koishi-plugin-docs)
run: yarn build
env:
DEPLOY_BASE: /dist-docs/
- name: Deploy (koishi-plugin-docs)
if: ${{ github.repository == 'koishijs/docs' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.WORKFLOW_TOKEN }}
publish_branch: dist-docs
publish_dir: .vitepress/dist
force_orphan: true
enable_jekyll: true
commit_message: '[skip ci] deploy'
- name: Sync (koishi-plugin-docs)
if: ${{ github.repository == 'koishijs/docs' && github.ref == 'refs/heads/main' }}
run: >
curl -L
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}"
https://api.github.com/repos/koishijs/koishi-plugin-docs/actions/workflows/build.yml/dispatches
-d '{"ref":"main"}'
- name: Build
if: ${{ github.repository == 'koishijs/docs' && github.ref == 'refs/heads/main' }}
run: yarn build
env:
MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }}
MEILISEARCH_READ_KEY: ${{ secrets.MEILISEARCH_READ_KEY }}
MEILISEARCH_WRITE_KEY: ${{ secrets.MEILISEARCH_WRITE_KEY }}
- name: Deploy
if: ${{ github.repository == 'koishijs/docs' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.WORKFLOW_TOKEN }}
external_repository: koishi-bot/koishi
publish_branch: pages
publish_dir: .vitepress/dist
force_orphan: true
enable_jekyll: true
commit_message: '[skip ci] deploy'