-
Notifications
You must be signed in to change notification settings - Fork 63
47 lines (44 loc) · 1.48 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
name: Winbindex Periodic Update
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'
- cron: '15 18 * * TUE'
concurrency: winbindex-periodic-update
jobs:
update:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Windows dependencies
if: runner.os == 'Windows'
run: |
choco install -y aria2
choco install -y tor
7z x data\tools.zip -odata\tools
curl -L -o data\tools\sxsexp64.exe https://github.com/hfiref0x/SXSEXP/raw/f67aa93a7d5acfdd4341d4b4822c351ce2206f62/Binary/sxsexp64.exe
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install -y aria2
sudo apt-get install -y cabextract
sudo apt-get install -y tor
- name: Cache Python dependencies
uses: actions/cache@v2
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' mitmproxy orjson requests
- name: Run periodic update
run: |
cd data
python -u deploy.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}