-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
50 lines (41 loc) · 1.03 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
44
45
46
47
48
49
50
init:
- git config --global core.autocrlf true
environment:
global:
GH_REF: github.com/kamranayub/kamranayub.github.io.git
WYAM_VERSION: v1.2.0
matrix:
- nodejs_version: "6"
platform:
- x64
cache:
- C:/Users/appveyor/.nuget/packages -> package.json
- node_modules -> package.json
- node_cache -> package.json
branches:
only:
- source
matrix:
fast_finish: true
install:
- ps: Install-Product node $env:nodejs_version
- mkdir wyam
- 7z x tools/Wyam-%WYAM_VERSION%.zip -owyam -r
- npm install
build_script:
- npm run semantic
- .\wyam\Wyam.exe -r Blog -t CleanBlog
test: off
on_success:
- git rev-parse HEAD > _commit.txt
- set /P CURRENT_COMMIT=< _commit.txt
- git clone -b master "https://%GH_TOKEN%@%GH_REF%" _deploy
- cd _deploy
- git rm -rf .
- xcopy ..\output /e /y
- git status
- git config user.name "Appveyor"
- git config user.email "appveyor@kamranicus.com"
- git add -A
- git commit --allow-empty -m "Deploying site for %CURRENT_COMMIT%"
- git push origin master