Add MakePackage and PostPackage scripts for plugin management

- Implement MakePackage.py to package plugins and their icons into a zip file and generate a JSON manifest.
- Create PostPackage.py to upload the generated zip file to a specified server using an API.
- Clean up old icons and JSON files before packaging.
- Use environment variables for deployment URL and token.
This commit is contained in:
denglihong2007
2025-07-19 21:40:52 +08:00
commit 92bd08a5c6
5 changed files with 109 additions and 0 deletions

26
.github/workflows/post.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Deploy
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install requests
pip install pyyaml
- name: Run deploy script
env:
DEPLOY_URL: ${{ secrets.DEPLOY_URL }}
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
python tools/MakePackage.py
python tools/PostPackage.py