mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-04-01 17:50:13 +00:00
update doc
This commit is contained in:
parent
d804c20fb3
commit
61f3eddf1f
2 changed files with 10 additions and 2 deletions
|
|
@ -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 <b>`blog-content`</b> 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 <b>`Settings > Secrets and variables > Actions`</b>, and add three `Repository secrets`:
|
||||
|
|
|
|||
|
|
@ -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`的基础上新建一个名为<b>`blog-content`</b>的分支,以后新的文章请推送到这个分支里。
|
||||
|
||||
### 一、设置SSH密钥
|
||||
|
||||
在仓库的<b>`Settings > Secrets and variables > Actions`</b>中,添加三个`Repository secrets`,分别为:
|
||||
|
|
|
|||
Loading…
Reference in a new issue