-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (39 loc) · 1.75 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
38
39
40
41
42
43
branches:
only:
- master
environment:
access_token:
# EDIT the encrypted version of your GitHub access token
secure: CLcsn//BsgjE+oJmi/PzMf/BrhogVyxaz9eMdhTD33pvtnqkeD6WqNyCtTS60DaI
install:
- git submodule update --init --recursive
- mkdir ..\Wyam
- mkdir ..\output
# Fetch the latest version of Wyam
- "curl -s https://raw.githubusercontent.com/Wyamio/Wyam/master/RELEASE -o ..\\Wyam\\wyamversion.txt"
- set /P WYAMVERSION=< ..\Wyam\wyamversion.txt
- echo %WYAMVERSION%
# Get and unzip the latest version of Wyam
- ps: Start-FileDownload "https://github.com/Wyamio/Wyam/releases/download/$env:WYAMVERSION/Wyam-$env:WYAMVERSION.zip" -FileName "..\Wyam\Wyam.zip"
- 7z x ..\Wyam\Wyam.zip -o..\Wyam -r
# Switch branches to gh-pages, clean the folder, copy everything in from the Wyam output, and commit/push
# See http://www.appveyor.com/docs/how-to/git-push for more info
- git config --global credential.helper store
# EDIT your Git email and name
- git config --global user.email $env:op_build_user_email
- git config --global user.name $env:op_build_user
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git clone https://github.com/cetusfinance/qwack.git ../qwack
build_script:
- ..\Wyam\wyam --output ..\output
on_success:
- git checkout gh-pages
- git rm -rf .
- xcopy ..\output . /E
# EDIT your domain name or remove if not using a custom domain
- echo qwack.io > CNAME
# EDIT the origin of your repository - have to reset it here because AppVeyor pulls from SSH, but GitHub won't accept SSH pushes
- git remote set-url origin https://github.com/cetusfinance/qwackdocs.git
- git add -A
- git commit -a -m "Commit from AppVeyor"
- git push