Commit 2fa2932 1 parent 270dbef commit 2fa2932 Copy full SHA for 2fa2932
File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 32
32
run : |
33
33
mkdocs build
34
34
35
+ - name : Deploy to GitHub Pages
36
+ uses : peaceiris/actions-gh-pages@v4
37
+ with :
38
+ github_token : ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir : ./site
40
+
35
41
- name : Cache Fonts
36
42
uses : actions/cache@v4
37
43
id : cache-fonts
83
89
node misc/export_to_pdf.js file://$PWD/site/print_page/index.html cppguidebook.pdf "小彭老师的现代 C++ 大典"
84
90
du -h cppguidebook.pdf
85
91
86
- - name : Generate ZIP site
92
+ - name : Generate ZIP archive
87
93
run : |
88
- zip -r cppguidebook-site.zip site
89
-
90
- - name : Deploy
91
- uses : peaceiris/actions-gh-pages@v4
92
- with :
93
- github_token : ${{ secrets.GITHUB_TOKEN }}
94
- publish_dir : ./site
94
+ cd site && zip -r cppguidebook-site.zip .
95
95
96
96
- name : Delete old Release
97
97
uses : actions/github-script@v7
@@ -110,7 +110,7 @@ jobs:
110
110
echo "release_date=$(TZ=Asia/Shanghai date +"%Y 年 %m 月 %d 日 %H 点 %M 分")" >> $GITHUB_OUTPUT
111
111
echo "release_tag=latest_$(date +"%Y-%m-%d_%H-%M")" >> $GITHUB_OUTPUT
112
112
113
- - name : Release
113
+ - name : Release on GitHub
114
114
uses : softprops/action-gh-release@v2
115
115
with :
116
116
name : 伟大,无需多言
You can’t perform that action at this time.
0 commit comments