2024-02-08 update #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Local Script | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.5' # 根据需要更改 Python 版本 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt # 假设所有Python依赖都在requirements.txt文件中 | |
- name: Make script executable | |
run: chmod +x ./scripts/deploy.sh | |
- name: Run the script | |
run: bash ./scripts/deploy.sh |