mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
ci: Isolate upload merge step into stage 2
This commit is contained in:
parent
1ec23a0353
commit
1817191d55
6 changed files with 25 additions and 26 deletions
|
@ -31,17 +31,7 @@ jobs:
|
||||||
needSubmodules: 'true'
|
needSubmodules: 'true'
|
||||||
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh
|
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh
|
||||||
displayName: 'Apply Git Configuration'
|
displayName: 'Apply Git Configuration'
|
||||||
- script: git tag -a $(BuildName)-$(Build.BuildId) -m "yuzu $(BuildName) $(Build.BuildNumber) $(Build.DefinitionName)"
|
|
||||||
displayName: 'Tag Source'
|
|
||||||
- script: git remote add other $(GitRepoPushChangesURL)
|
- script: git remote add other $(GitRepoPushChangesURL)
|
||||||
displayName: 'Register Repository'
|
displayName: 'Register Repository'
|
||||||
- script: git push --follow-tags --force other HEAD:$(GitPushBranch)
|
- script: git push --force other HEAD:$(GitPushBranch)
|
||||||
displayName: 'Update Code'
|
displayName: 'Update Code'
|
||||||
- script: git rev-list -n 1 $(BuildName)-$(Build.BuildId) > $(Build.ArtifactStagingDirectory)/tag-commit.sha
|
|
||||||
displayName: 'Calculate Release Point'
|
|
||||||
- task: PublishPipelineArtifact@1
|
|
||||||
displayName: 'Upload Release Point'
|
|
||||||
inputs:
|
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)/tag-commit.sha'
|
|
||||||
artifact: 'yuzu-$(BuildName)-release-point'
|
|
||||||
replaceExistingArchive: true
|
|
|
@ -30,17 +30,7 @@ jobs:
|
||||||
needSubmodules: 'true'
|
needSubmodules: 'true'
|
||||||
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh
|
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh
|
||||||
displayName: 'Apply Git Configuration'
|
displayName: 'Apply Git Configuration'
|
||||||
- script: git tag -a $(BuildName)-$(Build.BuildId) -m "yuzu $(BuildName) $(Build.BuildNumber) $(Build.DefinitionName)"
|
|
||||||
displayName: 'Tag Source'
|
|
||||||
- script: git remote add other $(GitRepoPushChangesURL)
|
- script: git remote add other $(GitRepoPushChangesURL)
|
||||||
displayName: 'Register Repository'
|
displayName: 'Register Repository'
|
||||||
- script: git push --follow-tags --force other HEAD:$(GitPushBranch)
|
- script: git push --force other HEAD:$(GitPushBranch)
|
||||||
displayName: 'Update Code'
|
displayName: 'Update Code'
|
||||||
- script: git rev-list -n 1 $(BuildName)-$(Build.BuildId) > $(Build.ArtifactStagingDirectory)/tag-commit.sha
|
|
||||||
displayName: 'Calculate Release Point'
|
|
||||||
- task: PublishPipelineArtifact@1
|
|
||||||
displayName: 'Upload Release Point'
|
|
||||||
inputs:
|
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)/tag-commit.sha'
|
|
||||||
artifact: 'yuzu-$(BuildName)-release-point'
|
|
||||||
replaceExistingArchive: true
|
|
|
@ -1,11 +1,13 @@
|
||||||
steps:
|
steps:
|
||||||
- template: ./release-download.yml
|
- template: ./release-download.yml
|
||||||
- task: GitHubRelease@0
|
- task: GitHubRelease@0
|
||||||
|
displayName: 'GitHub Release'
|
||||||
inputs:
|
inputs:
|
||||||
action: 'create'
|
action: 'create'
|
||||||
title: 'yuzu $(BuildName) #$(Build.BuildId)'
|
title: '$(ReleasePrefix) $(DisplayVersion)'
|
||||||
assets: '$(Build.ArtifactStagingDirectory)/*'
|
assets: '$(Build.ArtifactStagingDirectory)/*'
|
||||||
gitHubConnection: $(GitHubReleaseConnectionName)
|
gitHubConnection: $(GitHubReleaseConnectionName)
|
||||||
repositoryName: '$(Build.Repository.Name)'
|
repositoryName: '$(Build.Repository.Name)'
|
||||||
target: '$(Build.SourceVersion)'
|
target: '$(Build.SourceVersion)'
|
||||||
tagSource: 'auto'
|
tagSource: manual
|
||||||
|
tag: $(BuildName)-$(DisplayPrefix)-$(DisplayVersion)
|
9
.ci/templates/release-private-tag.yml
Normal file
9
.ci/templates/release-private-tag.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
steps:
|
||||||
|
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/yuzubot-git-config.sh
|
||||||
|
displayName: 'Apply Git Configuration'
|
||||||
|
- script: git tag -a $(BuildName)-$(DisplayPrefix)-$(DisplayVersion) -m "yuzu $(BuildName) $(Build.BuildNumber) $(Build.DefinitionName) $(DisplayPrefix)-$(DisplayVersion)"
|
||||||
|
displayName: 'Tag Source'
|
||||||
|
- script: git remote add other $(GitRepoPushChangesURL)
|
||||||
|
displayName: 'Register Repository'
|
||||||
|
- script: git push other $(BuildName)-$(DisplayPrefix)-$(DisplayVersion)
|
||||||
|
displayName: 'Update Code'
|
|
@ -57,12 +57,12 @@ stages:
|
||||||
cache: 'true'
|
cache: 'true'
|
||||||
version: $(DisplayVersion)
|
version: $(DisplayVersion)
|
||||||
- stage: release
|
- stage: release
|
||||||
displayName: 'Release'
|
displayName: 'release'
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- build
|
- build
|
||||||
- build_win
|
- build_win
|
||||||
jobs:
|
jobs:
|
||||||
- job: github
|
- job: github
|
||||||
displayName: 'GitHub Release'
|
displayName: 'github'
|
||||||
steps:
|
steps:
|
||||||
- template: ./templates/release-github.yml
|
- template: ./templates/release-github.yml
|
|
@ -32,3 +32,11 @@ stages:
|
||||||
artifactSource: 'false'
|
artifactSource: 'false'
|
||||||
cache: $(parameters.cache)
|
cache: $(parameters.cache)
|
||||||
version: $(DisplayVersion)
|
version: $(DisplayVersion)
|
||||||
|
- stage: release
|
||||||
|
displayName: 'release'
|
||||||
|
dependsOn: build
|
||||||
|
jobs:
|
||||||
|
- job: release
|
||||||
|
displayName: 'source'
|
||||||
|
steps:
|
||||||
|
- template: ./templates/release-private-tag.yml
|
||||||
|
|
Loading…
Reference in a new issue