mirror of
https://github.com/denglihong2007/CRSim-PluginRepository
synced 2026-08-06 17:16:25 +08:00
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:
26
.github/workflows/post.yml
vendored
Normal file
26
.github/workflows/post.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user