-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 993 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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