测试文章

图片

代码块

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Publish Hexo to gitpage
on:
push:
branches:
- main # 如果源码与gitpage用同一仓库则修改为hexo源码对应分支
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
- name: Install dependencies
run: |
npm install -g hexo-cli # 给虚拟机装上hexo运行环境
npm install # 安装 package.json 中记录的所有插件
- name: Generate Hexo site
run: |
hexo clean
hexo generate
- name: Deploy to B repo
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }} # Personal access token
external_repository: zhangwuji/zhangwuji.github.io # 发布的仓库地址
PUBLISH_BRANCH: main
PUBLISH_DIR: ./public

本文链接: 测试文章  https://aikunzhe.github.io/p/test/1699466263260.html
版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!