Skip to content

chore(deps): update dependency vitepress to v1.0.0-rc.13 (#131) #106

chore(deps): update dependency vitepress to v1.0.0-rc.13 (#131)

chore(deps): update dependency vitepress to v1.0.0-rc.13 (#131) #106

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Developer Docs
on:
push:
branches: [ next ]
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20 ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Docs...
run: pnpm docs:build
cd:
name: Deploy
needs: ci
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20 ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Docs...
run: pnpm docs:build
#- name: Deploy docs to COS
# uses: TencentCloud/cos-action@v1
# with:
# secret_id: ${{ secrets.SECRET_ID }}
# secret_key: ${{ secrets.SECRET_KEY }}
# cos_bucket: ${{ secrets.BUCKET }}
# cos_region: ap-chengdu
# local_path: docs/.vitepress/dist
# remote_path: /
# clean: true
- name: Deploy docs to Github pages...
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist
- name: Deploy docs to Hitokoto-2 with SSH
uses: easingthemes/ssh-deploy@v4
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.SSH_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.SSH_REMOTE_USER }}
REMOTE_PORT: ${{ secrets.SSH_REMOTE_PORT }}
SOURCE: docs/.vitepress/dist/
TARGET: ${{ secrets.SSH_TARGET }}