diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2896432..f2c23f4 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,4 +52,4 @@ jobs: with: body: ${{steps.github_release.outputs.changelog}} files: | - dist/*.zip + *.zip diff --git a/.github/workflows/upload.py b/.github/workflows/upload.py index 238826b..7075912 100644 --- a/.github/workflows/upload.py +++ b/.github/workflows/upload.py @@ -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") """