-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
56 lines (46 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
# appveyor.yml
version: 0.0.1.{build}
platform: x64
branches:
only:
- master
clone_folder: c:\gopath\src\github.com\Fancman\BackupSoftware
environment:
GOPATH: c:\gopath
install:
- ps: Start-FileDownload "https://www.dropbox.com/s/2ps67souqun8i29/7-ZipPortable.zip?dl=1" -FileName 7-ZipPortable.zip;
- cmd: mkdir buildOutput\7-ZipPortable
- cmd: 7z x 7-ZipPortable.zip -obuildOutput\7-ZipPortable
before_build:
- echo %PATH%
- echo %GOPATH%
- set PATH=%GOPATH%\bin;C:\msys64\mingw64\bin;c:\go\bin;%PATH%
- go version
- go env
- dir
#- cmd: cd %clone_folder%\7-ZipPortable && dir
- go get ./...
build_script:
- go build -o buildOutput\BackupSoftware.exe -i .
after_build:
- cmd : 7z a BackupSoftware.zip .\buildOutput\*
# Artifacts Configuration #
artifacts: # push all files in directory
path: BackupSoftware.zip
name: App
# Deploy to GitHub Releases
deploy:
#release: BackupSoftware-v$(APPVEYOR_BUILD_VERSION)
release: Backup Software - DEV version
#tag: $(APPVEYOR_REPO_TAG_NAME)
description: 'Working app'
provider: GitHub
auth_token:
secure: awRHVY0L1MODweHZoCISezWyO9AfhKElTWorVXCw1oMi6KXKvQqH8TFtO6YqCrpK # your encrypted token from GitHub
artifact: App
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
#APPVEYOR_REPO_TAG: true # deploy on tag push only