forked from portapps/brave-portable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (47 loc) · 1.39 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
51
52
53
54
55
56
57
58
version: '{build}'
platform:
- x64
clone_folder: C:\gopath\src\github.com\portapps\brave-portable
environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
GOPATH: C:\gopath
GOROOT: C:\go\
GOVERSION: 1.9.1
install:
- ps: choco install ant
- ps: $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- cmd: SET PATH=%GOPATH%\bin;%GOPATH%\bin\windows_386;%GOROOT%bin;%PATH%
- java -version
- ant -version
- go version
- go env
configuration:
- Release
before_build:
- go get -u -v github.com/portapps/portapps
build_script:
- ant release
after_build:
- ps: |
$env:APP_VERSION = Get-Content C:\gopath\src\github.com\portapps\brave-portable\bin\tmp\version.dat -Raw
Write-Host "App version: $env:APP_VERSION"
artifacts:
- path: 'bin\release\*'
name: release
deploy:
tag: $(APP_VERSION)
release: $(APP_VERSION)
description: 'New release: $(APP_VERSION)'
provider: GitHub
auth_token:
secure: BGz5Z+cKh7a/UOFxIfBfZYho8Ghf3bO3LvaX70mdgiG1UDJhtW3FUGDjBrwyZglf
artifact: release
draft: true
prerelease: false
on:
branch: master
notifications:
- provider: Webhook
url:
secure: Vf+59lgCDVyte9kmHKwYXPR7uc6THo9IH6mQwiPAWOCQHUoLCQrGFupj30nk4MUggyWss3ydobo/z1sQ6iYabwAkkwI6H9XNmjgGgTVlCJoBISHN6yTwxLgkYMi40qT4Mevr9XVgd6EmJqOi257YjQ==
method: post