Skip to content

Commit

Permalink
🐛 修复文件路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkioTomas committed Aug 27, 2024
1 parent b131604 commit 3ee2538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
with:
body: ${{steps.github_release.outputs.changelog}}
files: |
dist/*.zip
*.zip
4 changes: 2 additions & 2 deletions .github/workflows/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def upload_pan(name):
# 获取GITHUB_WORKSPACE环境变量并拼接dist目录
dir = os.getenv("GITHUB_WORKSPACE") + "/dist"
# 将dir目录压缩为zip
os.system("zip -r "+name+".zip " + dir)
os.system("zip -r "+os.getenv("GITHUB_WORKSPACE") + "/" +name+".zip " + dir)
# 获取目录长度,后面用于生成相对路径

upload(dir + "/index.json", "/index.json")

upload(dir + "/README.md", "/README.md")

upload(dir + "/"+name+".zip", "/"+name+".zip")
upload(os.getenv("GITHUB_WORKSPACE") + "/"+name+".zip", "/"+name+".zip")


"""
Expand Down

0 comments on commit 3ee2538

Please sign in to comment.