Skip to content

Commit

Permalink
refactor: 优化工作流文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh40Le1ZOOB committed Jan 18, 2024
1 parent e41cdea commit 85ad8a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and deploy
on:
push:
paths:
- ".github/**"
- ".github/workflows/**"
- "src/**"
- "theme/**"
- "book.toml"
Expand Down Expand Up @@ -82,8 +82,7 @@ jobs:
fc-cache -rv
- name: Build
run: |
sed -i "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" src/about.md
sed -i "s/COMMIT_SHA/${{ github.sha }}/" src/about.md
sed -e "s/BUILD_TIME/$(TZ=Asia/Shanghai date -Isecond)/" -e "s/COMMIT_SHA/${{ github.sha }}/" -i src/about.md
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit 85ad8a4

Please sign in to comment.