Skip to content

Commit

Permalink
🐛 zip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustUndertaker committed Nov 10, 2022
1 parent 6069b1b commit 74d8b67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ jobs:
pip install pyinstaller &&
pyinstaller -F --name=ntchat-client-${{ steps.regex-match.outputs.group1 }} --collect-data=ntchat --hidden-import dotenv main.py
- name: 打包文件
- name: 移动文件
run: |
mv ./dist/ntchat-client-${{ steps.regex-match.outputs.group1 }}.exe ./ntchat-client-${{ steps.regex-match.outputs.group1 }}.exe &&
zip ntchat-client-${{ steps.regex-match.outputs.group1 }}.zip ./ntchat-client-${{ steps.regex-match.outputs.group1 }}.exe ./.env
- name: 打包文件
uses: vimtor/action-zip@v1
with:
files: ntchat-client-${{ steps.regex-match.outputs.group1 }}.exe .env
dest: ntchat-client-${{ steps.regex-match.outputs.group1 }}.zip

- name: 发布版本
uses: actions/create-release@v1
Expand Down

0 comments on commit 74d8b67

Please sign in to comment.