Skip to content

Commit 2d64139

Browse files
committed
fix date
1 parent d3157ac commit 2d64139

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/generate_release_pdf.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
id: tag
9191
run: |
9292
echo "::set-output name=release_date::$(date +"%Y 年 %m 月 %d 日 %H 点 %M 分")"
93-
echo "::set-output name=release_date::latest_$(date +"%Y-%m-%d_%H-%M")"
93+
echo "::set-output name=release_tag::latest_$(date +"%Y-%m-%d_%H-%M")"
9494
9595
- name: Release
9696
uses: softprops/action-gh-release@v1
@@ -99,5 +99,5 @@ jobs:
9999
body: |
100100
小彭老师发布的最新 C++ 大典,更新时间 ${{ steps.tag.outputs.release_date }}
101101
> Release 页面太慢?GitHub 卡顿,无法下载?访问 [小彭老师自己维护的镜像](${{ env.MIRROR_SITE_URL }}/${{ env.TYPST_FILE_NAME }}.pdf)。
102-
tag_name: ${{ steps.tag.outputs.release_date }}
102+
tag_name: ${{ steps.tag.outputs.release_tag }}
103103
files: ${{ env.TYPST_FILE_NAME }}.pdf

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
88
## 下载 PDF
99

10-
可以前往 [Release 页面](https://github.com/parallel101/cppguidebook/releases) 免费下载本书的完整 PDF 文件。
10+
[点击开始在线阅读](https://142857.red/files/cppguidebook.pdf)
1111

12-
Release 页面太慢?GitHub 卡顿,无法下载?访问 [小彭老师自己维护的镜像](https://142857.red/files/cppguidebook.pdf)
12+
也可以前往 [GitHub Release 页面](https://github.com/parallel101/cppguidebook/releases) 下载 PDF 文件
1313

1414
> [!NOTE]
15-
> 感谢 [Derived Cat](https://github.com/hooyuser) 大佬提供智能脚本!每当小彭老师推送了修改后, PDF 文件都会自动更新。只要看到小彭老师提交新 commit,你就可以随时重新下载最新版。
15+
> 感谢 [Derived Cat](https://github.com/hooyuser) 大佬提供智能脚本!每当小彭老师推送了修改后,Release 页面和小水管服务器上的 PDF 文件都会自动更新。只要看到小彭老师提交新 commit,你就可以随时重新下载最新版。
1616
1717
## 你也可以参与编写的开源小册
1818

0 commit comments

Comments
 (0)