mirror of
https://github.com/denglihong2007/CRSim-PluginRepository
synced 2026-05-12 22:22:11 +08:00
29 lines
719 B
YAML
29 lines
719 B
YAML
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 }}
|
|
MIRROR_DEPLOY_URL: ${{ secrets.MIRROR_DEPLOY_URL }}
|
|
MIRROR_DEPLOY_TOKEN: ${{ secrets.MIRROR_DEPLOY_TOKEN }}
|
|
run: |
|
|
python tools/MakePackage.py
|
|
python tools/PostPackage.py
|