forked from Sigil-Ebook/sigil-user-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
53 lines (38 loc) · 979 Bytes
/
.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
51
52
branches:
only:
- master
clone_folder: c:\project\user_guide
image:
- Visual Studio 2017
configuration: Release
platform: x64
environment:
global:
PYTHON: C:\Python37-x64
EPUBCHECK: https://github.com/w3c/epubcheck/releases/download/v4.2.2/epubcheck-4.2.2.zip
before_build:
- cmd: |-
set PATH=%PYTHON%;%PATH%
curl.exe -L -o echeck.zip %EPUBCHECK%
7z x echeck.zip -y
build_script:
- cmd: |-
python .\appveyor_scripts\build_guide.py
test_script:
- cmd: |-
java -jar .\epubcheck-4.2.2\epubcheck.jar src/ -mode exp --failonwarnings
artifacts:
- path: '*.epub'
name: epub
deploy:
- provider: GitHub
auth_token:
secure: QM747yzK0qkUTP1k/zQXGbxvvWK97YQpC5+6oAX6FTCPI+jYlB2zf4mzdcFj/uPL
release: Sigil User Guide ($(APPVEYOR_REPO_TAG_NAME))
tag: $(APPVEYOR_REPO_TAG_NAME)
description: '[Replace this text]'
artifact: epub
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true