Commit 1d42981 1 parent a1aff38 commit 1d42981 Copy full SHA for 1d42981
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
env :
13
13
TYPST_FILE_NAME : cppguidebook
14
14
TYPST_FONT_PATH : fonts
15
- MIRROR_SITE_URL : https://142857.red
15
+ MIRROR_SITE_URL : https://142857.red/files
16
16
MIRROR_SITE_TOKEN : ${{ env.SEVEN_TOKEN }}
17
17
18
18
jobs :
39
39
else
40
40
# Download font metadata
41
41
mkdir -p cv
42
- curl -s "https://fonts.google.com/download/list?family=Noto%20Sans%20SC" > cv/noto_sans_sc_raw.txt
42
+ curl -sL "https://fonts.google.com/download/list?family=Noto%20Sans%20SC" > cv/noto_sans_sc_raw.txt
43
43
44
44
# Remove ")]}'" from the beginning of the file
45
45
tail -c +5 cv/noto_sans_sc_raw.txt > cv/noto_sans_sc_metadata.json
73
73
- name : Publish to mirror site
74
74
continue-on-error : true
75
75
run : |
76
- curl -X PUT -L ${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf -d @ file=${{ env.TYPST_FILE_NAME }}.pdf -d token=${{ env.MIRROR_SITE_TOKEN }}
76
+ curl -L - X PUT ${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf -F file=@ ${{ env.TYPST_FILE_NAME }}.pdf -F token=${{ env.MIRROR_SITE_TOKEN }}
77
77
78
78
- name : Delete old Release
79
79
uses : actions/github-script@v5
Original file line number Diff line number Diff line change 9
9
10
10
可以前往 [ Release 页面] ( https://github.com/parallel101/cppguidebook/releases ) 免费下载本书的完整 PDF 文件。
11
11
12
- Release 页面太慢?GitHub 卡顿,无法下载?访问 [ 小彭老师自己维护的镜像] ( https://142857.red/cppguidebook.pdf ) 。
12
+ Release 页面太慢?GitHub 卡顿,无法下载?访问 [ 小彭老师自己维护的镜像] ( https://142857.red/files/ cppguidebook.pdf ) 。
13
13
14
14
> [ !NOTE]
15
15
> 感谢 [ Derived Cat] ( https://github.com/hooyuser ) 大佬提供智能脚本!每当小彭老师推送了修改后,该 PDF 文件都会自动更新。只要看到小彭老师提交新 commit,你就可以随时重新下载最新版。
You can’t perform that action at this time.
0 commit comments