Skip to content

Commit 5e111ce

Browse files
authored
Update test.yml
1 parent b4afdf9 commit 5e111ce

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,31 @@ jobs:
3636
echo "成功将 '少年你相信光吗' 复制为 '_worker.js'"
3737
echo "注意:文件不会提交到仓库,仅用于 Release"
3838
39+
- name: Create zip file
40+
run: |
41+
zip Pages.zip _worker.js
42+
echo "成功将 '_worker.js' 压缩为 'Pages.zip'"
43+
3944
- name: Create GitHub Release
4045
uses: softprops/action-gh-release@v1
4146
with:
4247
tag_name: ${{ steps.get_tag.outputs.tag_name }}
43-
name: Release ${{ steps.get_tag.outputs.tag_name }}
48+
name: Pages ${{ steps.get_tag.outputs.tag_name }}
4449
body: |
4550
## 部署信息
4651
4752
- **源文件**: 少年你相信光吗
4853
- **目标文件**: _worker.js
54+
- **压缩文件**: Pages.zip
4955
- **标签**: ${{ steps.get_tag.outputs.tag_name }}
5056
- **部署时间**: ${{ github.event.head_commit.timestamp }}
5157
5258
## 文件变更
5359
54-
已从 `少年你相信光吗` 生成 `_worker.js` 文件。
60+
已从 `少年你相信光吗` 生成 `_worker.js` 文件,并压缩为 `Pages.zip`
5561
draft: false
5662
prerelease: false
57-
files: _worker.js
63+
files: Pages.zip
5864
env:
5965
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6066

@@ -63,6 +69,7 @@ jobs:
6369
echo "## 部署完成" >> $GITHUB_STEP_SUMMARY
6470
echo "- 源文件: 少年你相信光吗" >> $GITHUB_STEP_SUMMARY
6571
echo "- 目标文件: _worker.js" >> $GITHUB_STEP_SUMMARY
72+
echo "- 压缩文件: Pages.zip" >> $GITHUB_STEP_SUMMARY
6673
echo "- 标签: ${{ steps.get_tag.outputs.tag_name }}" >> $GITHUB_STEP_SUMMARY
6774
echo "- GitHub Release 已创建" >> $GITHUB_STEP_SUMMARY
6875

0 commit comments

Comments
 (0)