mirror of
https://github.com/handsomezhuzhu/handsomezhuzhu.github.io.git
synced 2026-02-20 11:50:14 +00:00
准备备案
This commit is contained in:
166
.github/workflows/deploy-old.yml
vendored
166
.github/workflows/deploy-old.yml
vendored
@@ -1,99 +1,99 @@
|
||||
name: Deploy Pages
|
||||
# name: Deploy Pages
|
||||
|
||||
# 触发条件,push到main分支或者pull request到main分支
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
# # 触发条件,push到main分支或者pull request到main分支
|
||||
# on:
|
||||
# push:
|
||||
# branches: [main]
|
||||
# pull_request:
|
||||
# branches: [main]
|
||||
|
||||
# 支持手动在工作流上触发
|
||||
workflow_dispatch:
|
||||
# # 支持手动在工作流上触发
|
||||
# workflow_dispatch:
|
||||
|
||||
# 设置时区
|
||||
env:
|
||||
TZ: Asia/Shanghai
|
||||
# # 设置时区
|
||||
# env:
|
||||
# TZ: Asia/Shanghai
|
||||
|
||||
# 权限设置
|
||||
permissions:
|
||||
# 允许读取仓库内容的权限。
|
||||
contents: read
|
||||
# 允许写入 GitHub Pages 的权限。
|
||||
pages: write
|
||||
# 允许写入 id-token 的权限。
|
||||
id-token: write
|
||||
# # 权限设置
|
||||
# permissions:
|
||||
# # 允许读取仓库内容的权限。
|
||||
# contents: read
|
||||
# # 允许写入 GitHub Pages 的权限。
|
||||
# pages: write
|
||||
# # 允许写入 id-token 的权限。
|
||||
# id-token: write
|
||||
|
||||
# 并发控制配置
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
# # 并发控制配置
|
||||
# concurrency:
|
||||
# group: pages
|
||||
# cancel-in-progress: false
|
||||
|
||||
# 定义执行任务
|
||||
jobs:
|
||||
# 构建任务
|
||||
build:
|
||||
# # 定义执行任务
|
||||
# jobs:
|
||||
# # 构建任务
|
||||
# build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
# node v20 运行
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
# # node v20 运行
|
||||
# strategy:
|
||||
# matrix:
|
||||
# node-version: [20]
|
||||
|
||||
steps:
|
||||
# 拉取代码
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# 保留 Git 信息
|
||||
fetch-depth: 0
|
||||
# steps:
|
||||
# # 拉取代码
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# # 保留 Git 信息
|
||||
# fetch-depth: 0
|
||||
|
||||
# 设置使用 Node.js 版本
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
# # 设置使用 Node.js 版本
|
||||
# - name: Use Node.js ${{ matrix.node-version }}
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# node-version: ${{ matrix.node-version }}
|
||||
|
||||
# 使用 最新的 PNPM
|
||||
# 你也可以指定为具体的版本
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: latest
|
||||
# version: 9
|
||||
run_install: false
|
||||
# # 使用 最新的 PNPM
|
||||
# # 你也可以指定为具体的版本
|
||||
# - uses: pnpm/action-setup@v4
|
||||
# name: Install pnpm
|
||||
# with:
|
||||
# version: latest
|
||||
# # version: 9
|
||||
# run_install: false
|
||||
|
||||
# 安装依赖
|
||||
- name: Install dependencies
|
||||
run: pnpm install --no-frozen-lockfile
|
||||
# 锁定依赖版本
|
||||
# run: pnpm install --frozen-lockfile
|
||||
# # 安装依赖
|
||||
# - name: Install dependencies
|
||||
# run: pnpm install --no-frozen-lockfile
|
||||
# # 锁定依赖版本
|
||||
# # run: pnpm install --frozen-lockfile
|
||||
|
||||
# 构建项目
|
||||
- name: Build blog project
|
||||
run: |
|
||||
echo ${{ github.workspace }}
|
||||
pnpm build
|
||||
# # 构建项目
|
||||
# - name: Build blog project
|
||||
# run: |
|
||||
# echo ${{ github.workspace }}
|
||||
# pnpm build
|
||||
|
||||
# 资源拷贝
|
||||
- name: Build with Jekyll
|
||||
uses: actions/jekyll-build-pages@v1
|
||||
with:
|
||||
source: ./docs/.vitepress/dist
|
||||
destination: ./_site
|
||||
# # 资源拷贝
|
||||
# - name: Build with Jekyll
|
||||
# uses: actions/jekyll-build-pages@v1
|
||||
# with:
|
||||
# source: ./docs/.vitepress/dist
|
||||
# destination: ./_site
|
||||
|
||||
# 上传 _site 的资源,用于后续部署
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
# # 上传 _site 的资源,用于后续部署
|
||||
# - name: Upload artifact
|
||||
# uses: actions/upload-pages-artifact@v3
|
||||
|
||||
# 部署任务
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
# # 部署任务
|
||||
# deploy:
|
||||
# environment:
|
||||
# name: github-pages
|
||||
# url: ${{ steps.deployment.outputs.page_url }}
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: build
|
||||
# steps:
|
||||
# - name: Deploy to GitHub Pages
|
||||
# id: deployment
|
||||
# uses: actions/deploy-pages@v4
|
||||
|
||||
@@ -28,19 +28,20 @@ const blogTheme = getThemeConfig({
|
||||
mermaid: true,
|
||||
|
||||
// 页脚
|
||||
// footer: {
|
||||
// // message 字段支持配置为HTML内容,配置多条可以配置为数组
|
||||
// // message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
|
||||
// copyright: 'MIT License | SIMON',
|
||||
// // icpRecord: {
|
||||
// // name: '蜀ICP备19011724号',
|
||||
// // link: 'https://beian.miit.gov.cn/'
|
||||
// // },
|
||||
// // securityRecord: {
|
||||
// // name: '公网安备xxxxx',
|
||||
// // link: 'https://www.beian.gov.cn/portal/index.do'
|
||||
// // },
|
||||
// },
|
||||
footer: {
|
||||
// message 字段支持配置为HTML内容,配置多条可以配置为数组
|
||||
message: '<span>联系邮箱:<a href="mailto:zhuzihan@zhuzihan.com">zhuzihan@zhuzihan.com</a></span>',
|
||||
copyright: 'MIT License | SIMON',
|
||||
version: false,
|
||||
icpRecord: {
|
||||
name: 'xICP备xxxxxxx号',
|
||||
link: 'https://beian.miit.gov.cn/'
|
||||
},
|
||||
securityRecord: {
|
||||
name: '公网安备xxxxx',
|
||||
link: 'https://www.beian.gov.cn/portal/index.do'
|
||||
},
|
||||
},
|
||||
|
||||
// 主题色修改
|
||||
themeColor: 'el-blue',
|
||||
|
||||
@@ -51,7 +51,7 @@ export default defineConfig({
|
||||
// },
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '导航页', link: 'http://home.zhuzihan.com/' },
|
||||
// { text: '导航页', link: 'http://home.zhuzihan.com/' },
|
||||
{ text: '服务器状态检测', link: 'https://state.zhuzihan.com/' },
|
||||
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
|
||||
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' },
|
||||
|
||||
@@ -9,6 +9,7 @@ sidebar: true # 是否显示侧边栏:true显示,false隐藏
|
||||
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
||||
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
||||
recommend: true
|
||||
publish: false
|
||||
---
|
||||
|
||||
# vLLM学习笔记(壹)
|
||||
|
||||
@@ -9,6 +9,7 @@ sidebar: true # 是否显示侧边栏:true显示,false隐藏
|
||||
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
||||
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
||||
recommend: true
|
||||
publish: false
|
||||
---
|
||||
|
||||
# vLLM 报告
|
||||
|
||||
Reference in New Issue
Block a user