mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-09-26 22:31:30 +08:00
优化工作流:增加一个压缩命令来加快上传。 (#3)
This commit is contained in:
parent
9eddfc088e
commit
e852db3d59
10
.github/workflows/action_workflow.yml
vendored
10
.github/workflows/action_workflow.yml
vendored
@ -32,13 +32,17 @@ jobs:
|
||||
cd ./usage/
|
||||
python jmcomic_workflows.py
|
||||
|
||||
- name: 压缩下载的漫画
|
||||
run: |
|
||||
zip -r /home/runner/work/jmcomic/download/下载完成的本子.zip /home/runner/work/jmcomic/download/*
|
||||
|
||||
- name: 上传结果
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
# Artifact name
|
||||
name: 下载完成的本子
|
||||
name: 下载完成的本子.zip
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: /home/runner/work/jmcomic/download/
|
||||
path: /home/runner/work/jmcomic/download/下载完成的本子.zip
|
||||
# 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.
|
||||
|
10
.github/workflows/action_workflow_local.yml
vendored
10
.github/workflows/action_workflow_local.yml
vendored
@ -38,13 +38,17 @@ jobs:
|
||||
cd ./usage/
|
||||
python jmcomic_workflows.py
|
||||
|
||||
- name: 压缩下载的漫画
|
||||
run: |
|
||||
zip -r /home/runner/work/jmcomic/download/下载完成的本子.zip /home/runner/work/jmcomic/download/*
|
||||
|
||||
- name: 上传结果
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
# Artifact name
|
||||
name: 下载完成的本子
|
||||
name: 下载完成的本子.zip
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: /home/runner/work/jmcomic/download/
|
||||
path: /home/runner/work/jmcomic/download/下载完成的本子.zip
|
||||
# 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