Skip to content

Commit

Permalink
use azure pipelines instead of github actions.
Browse files Browse the repository at this point in the history
Adv. of Azure Piplines:
- Has older OS versions
- Good Docs
- Very customizable
  • Loading branch information
vipranarayan14 committed Feb 11, 2020
1 parent b3d4ad4 commit 66e51c6
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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: |
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'

0 comments on commit 66e51c6

Please sign in to comment.