-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
97 lines (83 loc) · 2.32 KB
/
azure-pipelines.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
trigger:
branches:
include:
- refs/tags/*
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.14'
windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
variables:
python.version: 3.7.6
steps:
- bash: |
VERSION_TAG=`git describe --abbrev=0 --tags` && echo "##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG"
echo $VERSION_TAG
displayName: Set VERSION_TAG
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install pipenv
displayName: 'Install Python Dependencies'
- script: |
mkdir .venv
pipenv install
pipenv graph
displayName: 'Install Package Dependencies'
- script: |
sudo apt-get install ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
fpm --version
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: 'Install FBS Dependencies'
- script: |
pipenv run fbs freeze
displayName: 'Build App'
- script: |
pipenv run fbs installer
displayName: 'Make Installer'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'target/vMono/'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/vMono-windows-portable.zip'
replaceExistingArchive: true
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'Make Windows Portable App'
- task: CopyFiles@2
inputs:
SourceFolder: 'target/'
Contents: |
*.deb
*.dmg
*Setup.exe
*-windows-portable.zip
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: 'Copy Assets to Artifact Directory'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '$(System.JobName)'
displayName: 'Publish Assets in Artifact Directory'
- task: GitHubRelease@1
inputs:
gitHubConnection: 'github.com_vipranarayan14'
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
target: '$(Build.SourceVersion)'
tag: '$(VERSION_TAG)'
title: '$(VERSION_TAG)'
assetUploadMode: 'replace'
isDraft: true
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
displayName: 'Create GitHub Releases with Assets'