@@ -215,3 +215,36 @@ stages:
215215 - publish : $(Build.ArtifactStagingDirectory)/dist-partial-top_earlgrey_nexysvideo.tar
216216 artifact : dist-partial-top_earlgrey_nexysvideo
217217 displayName : ' Upload partial distribution artifacts'
218+
219+ - job : " deploy_releaseartifacts"
220+ displayName : " Package and deploy release distribution"
221+ pool :
222+ vmImage : " ubuntu-16.04"
223+ dependsOn :
224+ - sw_build
225+ - top_earlgrey_verilator
226+ - top_earlgrey_nexysvideo
227+ steps :
228+ - task : DownloadPipelineArtifact@2
229+ inputs :
230+ buildType : current
231+ targetPath : ' $(Build.ArtifactStagingDirectory)/dist-partial-download'
232+ - bash : |
233+ OT_VERSION=$(git describe --always)
234+ cd "$(Build.ArtifactStagingDirectory)"
235+ find "$(Build.ArtifactStagingDirectory)/dist-partial-download" -iname '*.tar' -exec tar --overwrite -xf {} \;
236+ mv dist opentitan-$OT_VERSION
237+ mkdir -p dist-final
238+ tar -cJf dist-final/opentitan-$OT_VERSION.tar.xz opentitan-$OT_VERSION
239+ displayName: 'Create final dist directory out of partial ones'
240+ - publish : $(Build.ArtifactStagingDirectory)/dist-final
241+ artifact : opentitan-dist
242+ displayName : " Upload release artifacts as Azure artifact"
243+ - task : GithubRelease@0
244+ displayName : ' Upload to GitHub releases (only tags)'
245+ inputs :
246+ gitHubConnection : opentitan-release-upload
247+ repositoryName : lowrisc/opentitan
248+ addChangeLog : false
249+ assets : |
250+ $(Build.ArtifactStagingDirectory)/dist-final/*
0 commit comments