Skip to content

Commit

Permalink
更新GitHub Pages部署工作流配置
Browse files Browse the repository at this point in the history
将工作流触发条件中的分支名称从`master`更新为`main`,以适应仓库主分支名称的更改。同时,将`actions/checkout`的版本从v4降级到v3,并调整Jekyll构建步骤的相关配置。此外,移除了对Jekyll的配置步骤和资源拷贝步骤中不相关的注释内容。

此变更确保GitHub Pages部署工作流能够正确地在`main`分支上触发,并使用指定的行动版本和配置进行构建和部署。
  • Loading branch information
Null committed Jul 28, 2024
1 parent 2fe85b1 commit 18ace1c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Deploy Pages

# 触发条件,push到master分支或者pull request到master分支
# 触发条件,push到main分支或者pull request到main分支
on:
push:
branches: [master]
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
# 保留 Git 信息
fetch-depth: 0
Expand All @@ -60,7 +60,7 @@ jobs:
with:
# version: latest
version: 9.2.0
run_install: true
run_install: false

# 安装依赖
- name: Install dependencies
Expand All @@ -72,9 +72,6 @@ jobs:
echo ${{ github.workspace }}
pnpm build
- name: Setup Jekyll
uses: actions/configure-pages@v5

# 资源拷贝
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
Expand Down

0 comments on commit 18ace1c

Please sign in to comment.