-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.milk.yml
49 lines (42 loc) · 1.48 KB
/
.milk.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
---
# chocomilk vars
# Package Changelog
changelog: "https://release-monitoring.org/api/v2/versions/?project_id=325924"
changelog_format: json
# Get Version
version: "{{ register_changelog.json['stable_versions'][0] }}"
# Download URL
url: "https://www.archimatetool.com/downloads/archi-5.php?/{{ version }}/Archi-Win64-Setup-{{ version }}.exe"
searchreplace:
"tools/chocolateyinstall.ps1":
- regwxp: (^\s*[$]*urlPackage\s*=\s*)('.*')
replace: "$urlPackage = '{{ url }}'"
- regwxp: (^\s*[$]*checksumPackage\s*=\s*)('.*')
replace: "$checksumPackage = '{{ file_hash }}'"
- regwxp: (^\s*[$]*urlPackage64\s*=\s*)('.*')
replace: "$urlPackage64 = '{{ url }}'"
- regwxp: (^\s*[$]*checksumPackage64\s*=\s*)('.*')
replace: "$checksumPackage64 = '{{ file_hash }}'"
# readme to description
readme:
start: 6
end: 16
# deploy
deploy:
- provider: chocolatey
repository: "https://push.chocolatey.org/"
key: "{{ lookup('env','CHOCOLATEY_ORG_API_KEY') }}"
- provider: chocolatey
repository: "https://nuget.itigo.tech/upload"
key: "{{ lookup('env','CHOCOLATEY_ITIGO_API_KEY') }}"
- provider: github
name: "OpenCircle-Choco-Bot"
email: "[email protected]"
url: github.com/open-circle-ltd/chocolatey.archi.git
key: "{{ lookup('env','GITHUB_API_KEY') }}"
# Notification
notifications:
- provider: mattermost
url: 'https://chat.open-circle.ch'
key: "{{ lookup('env','MATTERMOST_API_KEY') }}"
channel: 'notification-chocolatey'