Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
refactor pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
leoniDEV committed Mar 13, 2020
1 parent 599ea71 commit ecb56d9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions build/azure-pipelines-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ trigger:
- corona.pbx

pool:
vmImage: 'windows-latest'
name: SelfHost Win
#vmImage: 'windows-latest'

variables:
FileName: 'covid-19-report-ita.pbix'
tagname: 'covid19'

stages:
- stage: release
Expand All @@ -16,19 +21,27 @@ stages:
- job: Release
displayName: Release on Github
steps:
- task: CopyFiles@2
displayName: Copy Assets
inputs:
CleanTargetFolder: true
SourceFolder: $(Build.SourcesDirectory)
TargetFolder: $(Build.ArtifactStagingDirectory)
Contents: $(FileName)

- task: GitHubRelease@1
displayName: Release report
inputs:
action: edit
repositoryName: github.com/leoniDEV/covid-19-report-ita
repositoryName: leoniDEV/covid-19-report-ita
target: $(Build.SourceVersion)
tagSource: userSpecifiedTag
tag: $(Build.SourceVersion)
tag: $(tagname)
title: COVID-19 Report ITA
assets: $(Build.SourcesDirectory)/$(FileName)
addChangeLog: true
gitHubConnection: github.com_leoniDEV
changeLogCompareToRelease: lastFullRelease
assetUploadMode: delete

- stage: deployPbi
displayName: Deploy PowerBI Report
Expand Down

0 comments on commit ecb56d9

Please sign in to comment.