2019-04-06 18:26:35 -05:00
|
|
|
# 6 april 2019
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
os: ''
|
|
|
|
arch: ''
|
|
|
|
libtype: ''
|
|
|
|
libfiles: ''
|
|
|
|
osHeader: ''
|
|
|
|
|
|
|
|
steps:
|
2019-04-06 18:28:33 -05:00
|
|
|
- script: |
|
|
|
|
set -x
|
|
|
|
pushd build/meson-out
|
|
|
|
cp ../../ui.h ../../${{ parameters.osHeader }} .
|
|
|
|
tar czf $(Build.ArtifactStagingDirectory)/libui-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}.tgz ${{ parameters.libfiles }} ui.h ${{ parameters.osHeader}}
|
|
|
|
tar czf $(Build.ArtifactStagingDirectory)/examples-$(Build.SourceBranchName)-${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }}.tgz $(releaseExamples)
|
|
|
|
rm ui.h ${{ parameters.osHeader }}
|
|
|
|
popd
|
|
|
|
displayName: 'Create Artifacts'
|
2019-04-07 22:31:08 -05:00
|
|
|
- task: GitHubRelease@0
|
2019-04-07 22:38:28 -05:00
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
2019-04-07 22:31:08 -05:00
|
|
|
inputs:
|
|
|
|
gitHubConnection: andlabs
|
|
|
|
repositoryName: andlabs/libui
|
|
|
|
action: 'edit'
|
|
|
|
addChangelog: false
|
|
|
|
assets: '$(Build.ArtifactStagingDirectory)/*'
|
|
|
|
assetUploadMode: 'replace'
|