Skip to content

Commit

Permalink
Github Actions优化:使用tar压缩文件来加快上传 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
hect0x7 authored Apr 4, 2023
1 parent 2e29d53 commit b38ee83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/action_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
- name: 压缩下载的漫画
run: |
cd /home/runner/work/jmcomic/download/
zip -r ./下载完成的本子.zip ./*
tar -zcvf ../下载完成的本子.tar.gz ./
- name: 上传结果
uses: actions/upload-artifact@v3
with:
# 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.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/action_workflow_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
- name: 压缩下载的漫画
run: |
cd /home/runner/work/jmcomic/download/
zip -r ./下载完成的本子.zip ./*
tar -zcvf ../下载完成的本子.tar.gz ./
- name: 上传结果
uses: actions/upload-artifact@v3
with:
# 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.
Expand Down

0 comments on commit b38ee83

Please sign in to comment.