Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build-and-deploy:
name: Build & Deploy
runs-on: ubuntu-latest
environment:
name: deploy
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# If your repository depends on submodule, please see: https://github.com/actions/checkout
submodules: recursive
- name: Timezone
uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Asia/Shanghai"
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Cache NPM dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: yarn
- name: Build
run: yarn run docs:build
- name: Deploy to Server
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
with:
username: ${{ secrets.SERVER_USERNAME }}
server: ${{ secrets.SERVER_IP }}
port: ${{ secrets.SERVER_PORT }}
ssh_private_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
ssh_passphrase: ${{ secrets.DEPLOY_PASSPHRASE }}
local_path: './docs/.vuepress/dist/*'
remote_path: ${{ secrets.DEPLOY_PATH }}
5 changes: 4 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ module.exports = {
markdown: {
toc: {
includeLevel:[1, 2, 3, 4]
}
},
plugins: [
'markdown-it-mathjax3'
]
},
theme: 'vdoing',

Expand Down
24 changes: 0 additions & 24 deletions docs/.vuepress/dist/404.html

This file was deleted.

Loading