File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
TYPST_FILE_NAME : cppguidebook
14
14
TYPST_FONT_PATH : fonts
15
15
MIRROR_SITE_URL : https://142857.red/files
16
+ MIRROR_SITE_HOOK : https://142857.red/hooks/update_cppguidebook
16
17
MIRROR_SITE_TOKEN : ${{ secrets.SEVEN_TOKEN }}
17
18
18
19
jobs :
70
71
typst fonts --variants --font-path ${{ env.TYPST_FONT_PATH }}
71
72
typst compile ${{ env.TYPST_FILE_NAME }}.typ ${{ env.TYPST_FILE_NAME }}.pdf --font-path ${{ env.TYPST_FONT_PATH }}
72
73
73
- - name : Publish to mirror site
74
- continue-on-error : true
75
- run : |
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
-
78
74
- name : Delete old Release
79
75
uses : actions/github-script@v7
80
76
with :
101
97
> Release 页面太慢?GitHub 卡顿,无法下载?访问 [小彭老师自己维护的镜像](${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf)。
102
98
tag_name : ${{ steps.tag.outputs.release_tag }}
103
99
files : ${{ env.TYPST_FILE_NAME }}.pdf
100
+
101
+ - name : Publish to mirror site
102
+ continue-on-error : true
103
+ run : |
104
+ curl -L -X POST ${{ env.MIRROR_SITE_HOOK }} -d token=${{ env.MIRROR_SITE_TOKEN }} -d tag=${{ steps.tag.outputs.release_tag }}
Original file line number Diff line number Diff line change 58
58
59
59
<a href =" https://afdian.net/a/archibate " ><img src =" https://142857.red/afdian-qrcode.jpg?y " alt =" https://afdian.net/a/archibate " width =" 400px " /></a >
60
60
61
- > [ !WARN]
62
61
> 救命……爱发电似乎关停了!?小彭老师赶紧贴出支付宝收款码作为替代……
63
62
64
63
<img src =" misc/zfb-qrcode.jpg " alt =" misc/zfb-qrcode.jpg " width =" 400px " />
You can’t perform that action at this time.
0 commit comments