-
Notifications
You must be signed in to change notification settings - Fork 63
54 lines (50 loc) · 1.47 KB
/
deploy.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
48
49
50
51
52
53
54
name: Winbindex Periodic Update
defaults:
run:
shell: bash
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'
- cron: '15 18 * * TUE'
concurrency: winbindex-periodic-update
jobs:
update:
runs-on: windows-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: data/gh-pages
- name: Override out_path
run: |
echo ./gh-pages/data > data/.out_path_override
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Windows dependencies
run: |
choco install -y aria2 tor
- name: Configure Windows dependencies
run: |
# Make sure git clean doesn't fail on long paths.
git config --system core.longpaths true
- name: Cache Python dependencies
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: v2-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('.github/workflows/deploy.yml') }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install 'git+https://github.com/m417z/pymultitor.git' isal mitmproxy orjson requests signify
- name: Run periodic update
run: |
cd data
python -u deploy.py