mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 20:06:28 -05:00
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
jobs:
|
|
- job: merge
|
|
displayName: 'pull requests'
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- checkout: self
|
|
submodules: recursive
|
|
- template: ./mergebot-private.yml
|
|
parameters:
|
|
matchLabel: '$(BuildName)-merge'
|
|
matchLabelPublic: '$(PublicBuildName)-merge'
|
|
- task: ArchiveFiles@2
|
|
displayName: 'Package Source'
|
|
inputs:
|
|
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
|
|
includeRootFolder: false
|
|
archiveType: '7z'
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/suyu-$(BuildName)-source.7z'
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: 'Upload Artifacts'
|
|
inputs:
|
|
targetPath: '$(Build.ArtifactStagingDirectory)/suyu-$(BuildName)-source.7z'
|
|
artifact: 'suyu-$(BuildName)-source'
|
|
replaceExistingArchive: true
|
|
- job: upload_source
|
|
displayName: 'upload'
|
|
dependsOn: merge
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- template: ./sync-source.yml
|
|
parameters:
|
|
artifactSource: 'true'
|
|
needSubmodules: 'true'
|
|
- script: chmod a+x $(System.DefaultWorkingDirectory)/.ci/scripts/merge/suyubot-git-config.sh && $(System.DefaultWorkingDirectory)/.ci/scripts/merge/suyubot-git-config.sh
|
|
displayName: 'Apply Git Configuration'
|
|
- script: git remote add other $(GitRepoPushChangesURL)
|
|
displayName: 'Register Repository'
|
|
- script: git push --force other HEAD:$(GitPushBranch)
|
|
displayName: 'Update Code'
|