Skip to content

Commit a939da1

Browse files
committed
main
1 parent 77e1900 commit a939da1

File tree

184 files changed

+13080
-10127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+13080
-10127
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for npm
4+
- package-ecosystem: npm
5+
# Look for `package.json` and `lock` files in the `root` directory
6+
directory: /
7+
# Check the npm registry for updates every day (weekdays)
8+
schedule:
9+
interval: weekly
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependabot auto-approve
2+
on: pull_request
3+
4+
permissions:
5+
pull-requests: write
6+
7+
jobs:
8+
dependabot:
9+
runs-on: ubuntu-latest
10+
if: github.actor == 'dependabot[bot]'
11+
steps:
12+
- name: Dependabot metadata
13+
id: metadata
14+
uses: dependabot/fetch-metadata@v2
15+
with:
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
- name: Approve a PR
18+
run: gh pr review --approve "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/deploy.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# 在针对 `main` 分支的推送上运行。如果你
7+
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
8+
push:
9+
branches: [main]
10+
11+
# 允许你从 Actions 选项卡手动运行此工作流程
12+
workflow_dispatch:
13+
14+
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
21+
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# 构建工作
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 1 # 如果未启用 lastUpdated,则不需要
35+
submodules: recursive
36+
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释
37+
with:
38+
version: 9
39+
run_install: false
40+
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
41+
- name: Setup Node
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: 21
45+
cache: pnpm # 或 pnpm / yarn
46+
47+
# - name: Clone EasyTier
48+
# uses: GuillaumeFalourd/clone-github-repo-action@v2.3
49+
# with:
50+
# depth: 1
51+
# branch: 'main'
52+
# owner: 'EasyTier'
53+
# repository: 'EasyTier'
54+
# - name: Build EasyTier Web
55+
# run: |
56+
# cd EasyTier
57+
# pnpm -r install
58+
# WEB_BASE_URL=/web pnpm -r build
59+
# cd ..
60+
# mkdir -p public/web
61+
# cp -r EasyTier/easytier-web/frontend/dist/* public/web/
62+
# rm -rf EasyTier
63+
64+
- name: Setup Pages
65+
uses: actions/configure-pages@v4
66+
- name: Install dependencies
67+
run: pnpm -r install # 或 pnpm install / yarn install / bun install
68+
- name: Build with VitePress
69+
run: pnpm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
70+
- name: Upload artifact
71+
uses: actions/upload-pages-artifact@v3
72+
with:
73+
path: .vitepress/dist
74+
- name: Upload OSS
75+
if: ${{ github.ref == 'refs/heads/main' }}
76+
uses: Menci/upload-to-oss@main
77+
with:
78+
access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }}
79+
access-key-secret: ${{ secrets.ALIYUN_OSS_ACCESS_KEY }}
80+
endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
81+
bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
82+
local-path: .vitepress/dist
83+
remote-path: /
84+
no-delete-remote-files: false
85+
retry: 5
86+
delay-html-file-upload: true
87+
88+
89+
# 部署工作
90+
deploy:
91+
environment:
92+
name: github-pages
93+
url: ${{ steps.deployment.outputs.page_url }}
94+
needs: build
95+
runs-on: ubuntu-latest
96+
name: Deploy
97+
steps:
98+
- name: Deploy to GitHub Pages
99+
id: deployment
100+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.log
2+
*.tgz
3+
.DS_Store
4+
.idea
5+
.temp
6+
.vite_opt_cache
7+
.vscode
8+
!.vscode/settings.json
9+
!.vscode/extensions.json
10+
dist
11+
cache
12+
temp
13+
node_modules
14+
.vitepress/cache

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".vitepress/third_party/lumen"]
2+
path = .vitepress/third_party/lumen
3+
url = https://github.com/KKRainbow/lumen.git

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

.vitepress/cache/deps/@theme_index.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

.vitepress/cache/deps/@theme_index.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vitepress/cache/deps/_metadata.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

.vitepress/cache/deps/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)