-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
37 lines (33 loc) · 1.09 KB
/
appveyor.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
image: Visual Studio 2017
environment:
PYTHON: C:\\Python36-x64
GH_NAME: Cu3PO42 (CI)
GH_EMAIL: cu3po42+ci@gmail.com
GH_TOKEN:
secure: JDKPRC/4ie0C7Gq8wnEO345Vzj5sdfRndh7vyqi5pjijvKh8FpTeFl/uxQcTOT9E
CLIENT_ID:
secure: 8AzfGr59LsOU2Fp3KRVH5Q==
CLIENT_SECRET:
secure: jhCWuDQ5ggBQH5t7rCC/w0hS/EexMtvthVudix4cyqc=
install:
- "%PYTHON%\\python -m pip install -r requirements.txt"
build_script:
- "%PYTHON%\\python crawl.py"
deploy_script:
- ps: |
$remote="https://Cu3PO42:$env:GH_TOKEN@github.com/Cu3PO42/SVEx-Crawler.git"
New-Item -name gh-pages -itemType directory
Set-Location gh-pages
git init
git config user.email "$env:GH_EMAIL"
git config user.name "$env:GH_NAME"
git remote add --fetch origin "$remote"
git checkout gh-pages
git pull "$remote" gh-pages
git rm -rf .
Copy-Item "../tsvs.json" -Destination "."
git add -A
git commit --allow-empty -m "Deploy to GitHub pages ($(Get-Date -Format g))"
git push --quiet "$remote" gh-pages
Set-Location ..
Remove-Item gh-pages -Force -Recurse