mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-11-04 14:49:43 +08:00
Github Actions优化:使用tar压缩文件来加快上传 (#7)
This commit is contained in:
parent
2e29d53631
commit
b38ee83c27
4
.github/workflows/action_workflow.yml
vendored
4
.github/workflows/action_workflow.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
- name: 压缩下载的漫画
|
||||
run: |
|
||||
cd /home/runner/work/jmcomic/download/
|
||||
zip -r ./下载完成的本子.zip ./*
|
||||
tar -zcvf ../下载完成的本子.tar.gz ./
|
||||
|
||||
- name: 上传结果
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
# Artifact name
|
||||
name: 下载完成的本子
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: /home/runner/work/jmcomic/download/下载完成的本子.zip
|
||||
path: /home/runner/work/jmcomic/下载完成的本子.tar.gz
|
||||
# The desired behavior if no files are found using the provided path.
|
||||
if-no-files-found: warn
|
||||
# Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
|
||||
|
||||
4
.github/workflows/action_workflow_local.yml
vendored
4
.github/workflows/action_workflow_local.yml
vendored
@ -43,7 +43,7 @@ jobs:
|
||||
- name: 压缩下载的漫画
|
||||
run: |
|
||||
cd /home/runner/work/jmcomic/download/
|
||||
zip -r ./下载完成的本子.zip ./*
|
||||
tar -zcvf ../下载完成的本子.tar.gz ./
|
||||
|
||||
- name: 上传结果
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -51,7 +51,7 @@ jobs:
|
||||
# Artifact name
|
||||
name: 下载完成的本子
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: /home/runner/work/jmcomic/download/下载完成的本子.zip
|
||||
path: /home/runner/work/jmcomic/下载完成的本子.tar.gz
|
||||
# The desired behavior if no files are found using the provided path.
|
||||
if-no-files-found: warn
|
||||
# Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user