From 61f3eddf1fc574aac6b195fa20bd0dda5c32c061 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Fri, 27 Mar 2026 11:12:23 +0200 Subject: [PATCH] update doc --- docs/GithubActions-en.md | 6 +++++- docs/GithubActions.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/GithubActions-en.md b/docs/GithubActions-en.md index e060048..ee317eb 100644 --- a/docs/GithubActions-en.md +++ b/docs/GithubActions-en.md @@ -4,12 +4,16 @@ > [!NOTE] > -> This project's GitHub Actions workflow listens for `git push` operations in the `src/blog` and `src/friends` directories. If either directory is updated, the build pipeline will be triggered. +> This project's GitHub Actions workflow listens for `git push` operations in the `src/blog` and `src/friends` directories on the `blog-content` branch. If either directory is updated, the build pipeline will be triggered. > [!IMPORTANT] > > To use this feature, you need to fork this project into your own repository. The workflow can only run in your own repository. +### 0. Create a New Branch + +Create a new branch named `blog-content` based on the `master` branch. Please push new articles to this branch in the future. + ### 1. Set up SSH keys In your repository, go to `Settings > Secrets and variables > Actions`, and add three `Repository secrets`: diff --git a/docs/GithubActions.md b/docs/GithubActions.md index 7ff23ee..e5ed4db 100644 --- a/docs/GithubActions.md +++ b/docs/GithubActions.md @@ -4,12 +4,16 @@ > [!NOTE] > -> 此项目的Github Actions监听`src/blog`和`src/friends`两个目录的`git push`操作,两个目录有更新则触发构建流水线。 +> 此项目的Github Actions监听`blog-content`分支中`src/blog`和`src/friends`两个目录的`git push`操作,两个目录有更新则触发构建流水线。 > [!IMPORTANT] > > 需要使用这个功能请自行Fork一份代码到自己的仓库,在你自己的仓库才能跑流水线。 +### 零、新建一个分支 + +在`master`的基础上新建一个名为`blog-content`的分支,以后新的文章请推送到这个分支里。 + ### 一、设置SSH密钥 在仓库的`Settings > Secrets and variables > Actions`中,添加三个`Repository secrets`,分别为: