添加创建zip动作
This commit is contained in:
14
.github/workflows/python-app.yml
vendored
14
.github/workflows/python-app.yml
vendored
@@ -76,20 +76,14 @@ jobs:
|
||||
run: |
|
||||
$VERSION=(Get-Content -Path "更新说明.txt" -TotalCount 1).Trim()
|
||||
"version=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
- name: Create Zip
|
||||
run: |
|
||||
zip -r AUTO_MAA_${{ env.version }}.zip data/**/* gui/**/* res/**/* AUTO_MAA.py dist/AUTO_MAA.exe requirements.txt README.md LICENSE 更新说明.txt
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: AUTO_MAA_${{ env.version }}
|
||||
path: |
|
||||
data/**/*
|
||||
gui/**/*
|
||||
res/**/*
|
||||
AUTO_MAA.py
|
||||
dist/AUTO_MAA.exe
|
||||
requirements.txt
|
||||
README.md
|
||||
LICENSE
|
||||
更新说明.txt
|
||||
path: AUTO_MAA_${{ env.version }}.zip
|
||||
publish_release:
|
||||
name: Publish release
|
||||
needs: build_AUTO_MAA
|
||||
|
||||
Reference in New Issue
Block a user