Skip to content

Commit 1e76bb5

Browse files
committed
reupdate
1 parent acaddb1 commit 1e76bb5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/generate_release_pdf.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
TYPST_FILE_NAME: cppguidebook
1414
TYPST_FONT_PATH: fonts
1515
MIRROR_SITE_URL: https://142857.red/files
16+
MIRROR_SITE_HOOK: https://142857.red/hooks/update_cppguidebook
1617
MIRROR_SITE_TOKEN: ${{ secrets.SEVEN_TOKEN }}
1718

1819
jobs:
@@ -70,11 +71,6 @@ jobs:
7071
typst fonts --variants --font-path ${{ env.TYPST_FONT_PATH }}
7172
typst compile ${{ env.TYPST_FILE_NAME }}.typ ${{ env.TYPST_FILE_NAME }}.pdf --font-path ${{ env.TYPST_FONT_PATH }}
7273
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-
7874
- name: Delete old Release
7975
uses: actions/github-script@v7
8076
with:
@@ -101,3 +97,8 @@ jobs:
10197
> Release 页面太慢?GitHub 卡顿,无法下载?访问 [小彭老师自己维护的镜像](${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf)。
10298
tag_name: ${{ steps.tag.outputs.release_tag }}
10399
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 }}

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
5959
<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>
6060

61-
> [!WARN]
6261
> 救命……爱发电似乎关停了!?小彭老师赶紧贴出支付宝收款码作为替代……
6362
6463
<img src="misc/zfb-qrcode.jpg" alt="misc/zfb-qrcode.jpg" width="400px"/>

0 commit comments

Comments
 (0)