CI #30983
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: CI | |
on: | |
push: | |
branches-ignore: | |
- gh-pages | |
workflow_dispatch: | |
schedule: | |
- cron: '*/30 * * * *' | |
- cron: '15 18 * * *' | |
- cron: '15 21 * * *' | |
concurrency: | |
group: ${{ github.workflow }} | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ secrets.CODE_REPO }} | |
token: ${{ secrets.CODE_TOKEN }} | |
persist-credentials: false | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: pip | |
- name: Install requirements | |
run: pip3 install -r requirements.txt | |
- name: Run code | |
run: python3 run.py ${{ secrets.GITHUB_TOKEN }} ${{ secrets.API_URL }} ${{ secrets.API_TOKEN }} | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: deploy/ | |
clean: true |