forked from l3uddz/wantarr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
53 lines (42 loc) · 875 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
53
version: 1.0.{build}
image:
- Ubuntu1804
- macOS
platform: x64
branches:
only:
- master
- develop
deploy:
- provider: GitHub
auth_token:
secure: japCKJyRSrHvPJV0hqZZGcRM9ZSR9GsTVh8SCCwbqiyuKTyB3OCcRMc6ICztczfV
artifact: wantarr
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true
# no need for caching as it does not appear to work right now
#cache:
# - vendor -> go.mod, appveyor.yml
artifacts:
- path: dist/**/*.tar.tgz
name: wantarr
environment:
GO111MODULE: on
install:
- go version
- go env
before_build:
- |-
if [ ${APPVEYOR_REPO_TAG} = "true" ]; then
export VERSION=${APPVEYOR_REPO_TAG_NAME}
fi
build_script:
- make build
after_build:
- |-
export build=$(find dist/* -type d | sed 's!.*/!!')
cd dist/$build
tar -czf $build.tar.tgz wantarr
cd ../..