Skip to content

Commit

Permalink
Configure CI to use github release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed May 10, 2020
1 parent 38d5e7a commit c35aafa
Showing 1 changed file with 45 additions and 10 deletions.
55 changes: 45 additions & 10 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,23 @@ jobs:
# set -eux
# scons tests godot_args="--verbose --video-driver GLES2"
# displayName: 'Run tests'
- bash: |
- powershell: |
scons release
mkdir export && cp build/godot-python-*.zip export
cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)
displayName: 'Generate artifact archive'
- publish: export/
artifact: $(PLATFORM)_build
- task: GithubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: 'github.com_touilleMan'
repositoryName: 'touilleMan/godot-python'
action: 'edit'
target: '$(build.sourceVersion)'
tagSource: 'manual'
tag: '$(Build.SourceBranchName)'
assets: '$(Build.ArtifactStagingDirectory)/godot-python-*.zip'
title: '$(Build.SourceBranchName)'
assetUploadMode: 'replace'
addChangeLog: false


#################################################################################
Expand Down Expand Up @@ -123,11 +134,23 @@ jobs:
# scons tests
# displayName: 'Run tests'
- bash: |
set -eux
scons release
mkdir export && cp build/godot-python-*.zip export
cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)/
displayName: 'Generate artifact archive'
- publish: export/
artifact: $(PLATFORM)_build
- task: GithubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: 'github.com_touilleMan'
repositoryName: 'touilleMan/godot-python'
action: 'edit'
target: '$(build.sourceVersion)'
tagSource: 'manual'
tag: '$(Build.SourceBranchName)'
assets: '$(Build.ArtifactStagingDirectory)/godot-python-*.zip'
title: '$(Build.SourceBranchName)'
assetUploadMode: 'replace'
addChangeLog: false


#################################################################################
Expand Down Expand Up @@ -172,8 +195,20 @@ jobs:
# scons tests
# displayName: 'Run tests'
- bash: |
set -eux
scons release
mkdir export && cp build/godot-python-*.zip export
cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)/
displayName: 'Generate artifact archive'
- publish: export/
artifact: $(PLATFORM)_build
- task: GithubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
gitHubConnection: 'github.com_touilleMan'
repositoryName: 'touilleMan/godot-python'
action: 'edit'
target: '$(build.sourceVersion)'
tagSource: 'manual'
tag: '$(Build.SourceBranchName)'
assets: '$(Build.ArtifactStagingDirectory)/godot-python-*.zip'
title: '$(Build.SourceBranchName)'
assetUploadMode: 'replace'
addChangeLog: false

0 comments on commit c35aafa

Please sign in to comment.