-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
79 lines (69 loc) · 2.62 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: 0.0.{build}
shallow_clone: true
clone_depth: 1
environment:
pack_dlls: 1
matrix:
- PYTHON: "C:\\Python37"
ARCH: "32"
- PYTHON: "C:\\Python37"
ARCH: "64"
install:
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\Scripts\\pip install --no-warn-script-location pyinstaller"
- ps: Set-Content "MountainCheckHours\\version.py" ( "__version__ = '{0}'" -f ( $env:APPVEYOR_BUILD_VERSION ) )
- "%PYTHON%\\Scripts\\pip install --no-warn-script-location -r requirements.txt"
build:
verbosity: normal
build_script:
- "%PYTHON%\\Scripts\\pyinstaller --onefile --icon icon.ico MountainCheckHours.py"
after_build:
- ps: 7z a MountainCheckHours-$env:APPVEYOR_BUILD_VERSION-windows-$env:ARCH.zip .\dist\* LICENSE
artifacts:
- path: "MountainCheckHours-*-windows-32.zip"
- path: "MountainCheckHours-*-windows-64.zip"
deploy:
################################################################################
# Release untagged versaions as drafts
- provider: GitHub
release: draft-v$(appveyor_build_version)
auth_token:
secure: 208TDvAq+KHsvan3IIpa1CyuzFxO7cw/0zMjSxogqBGbnkNUxQU6g6YUiekFAWRC
artifact: "MountainCheckHours-$(appveyor_build_version)-windows-32.zip"
draft: true
prerelease: false
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: false
- provider: GitHub
release: draft-v$(appveyor_build_version)
auth_token:
secure: 208TDvAq+KHsvan3IIpa1CyuzFxO7cw/0zMjSxogqBGbnkNUxQU6g6YUiekFAWRC
artifact: "MountainCheckHours-$(appveyor_build_version)-windows-64.zip"
draft: true
prerelease: false
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: false
################################################################################
# Release tagged versaions as pre-release
- provider: GitHub
release: v$(appveyor_build_version)
auth_token:
secure: 208TDvAq+KHsvan3IIpa1CyuzFxO7cw/0zMjSxogqBGbnkNUxQU6g6YUiekFAWRC
artifact: "MountainCheckHours-$(appveyor_build_version)-windows-32.zip"
draft: false
prerelease: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true
- provider: GitHub
release: v$(appveyor_build_version)
auth_token:
secure: 208TDvAq+KHsvan3IIpa1CyuzFxO7cw/0zMjSxogqBGbnkNUxQU6g6YUiekFAWRC
artifact: "MountainCheckHours-$(appveyor_build_version)-windows-64.zip"
draft: false
prerelease: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true