mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-24 20:06:54 +00:00
Update azure-pipelines.yml: auto upload to gihub release
This commit is contained in:
parent
9d0feb3948
commit
b545879720
1 changed files with 57 additions and 3 deletions
|
@ -3,6 +3,8 @@
|
||||||
# Add steps that publish symbols, save build artifacts, and more:
|
# Add steps that publish symbols, save build artifacts, and more:
|
||||||
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
|
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
|
||||||
|
|
||||||
|
name: $(Build.SourceBranchName)_$(date:yyyyMMdd)$(rev:.r)
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
@ -22,12 +24,64 @@ steps:
|
||||||
restoreSolution: '$(solution)'
|
restoreSolution: '$(solution)'
|
||||||
|
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
|
displayName: 'Build v2rayN'
|
||||||
inputs:
|
inputs:
|
||||||
solution: '$(solution)'
|
solution: '$(solution)'
|
||||||
platform: '$(buildPlatform)'
|
platform: '$(buildPlatform)'
|
||||||
configuration: '$(buildConfiguration)'
|
configuration: '$(buildConfiguration)'
|
||||||
|
|
||||||
- task: VSTest@2
|
- task: Bash@3
|
||||||
|
displayName: 'Download v2ray-core package'
|
||||||
inputs:
|
inputs:
|
||||||
platform: '$(buildPlatform)'
|
targetType: 'inline'
|
||||||
configuration: '$(buildConfiguration)'
|
script: curl -O 'https://cdn.jsdelivr.net/gh/v2ray/dist/v2ray-windows-64.zip'
|
||||||
|
workingDirectory: '$(System.ArtifactsDirectory)'
|
||||||
|
|
||||||
|
- task: ArchiveFiles@2
|
||||||
|
displayName: 'Archive v2rayN Package'
|
||||||
|
inputs:
|
||||||
|
rootFolderOrFile: '$(Build.SourcesDirectory)/v2rayN/v2rayN/bin/Release'
|
||||||
|
includeRootFolder: false
|
||||||
|
archiveType: 'zip'
|
||||||
|
archiveFile: '$(Build.ArtifactStagingDirectory)/v2rayN.zip'
|
||||||
|
replaceExistingArchive: true
|
||||||
|
|
||||||
|
- task: ExtractFiles@1
|
||||||
|
displayName: 'Extract v2ray-core file'
|
||||||
|
inputs:
|
||||||
|
archiveFilePatterns: '$(System.ArtifactsDirectory)/v2ray-windows-64.zip'
|
||||||
|
destinationFolder: '$(Build.SourcesDirectory)/v2rayN/v2rayN/bin/Release'
|
||||||
|
cleanDestinationFolder: false
|
||||||
|
|
||||||
|
- task: ArchiveFiles@2
|
||||||
|
displayName: 'Archive v2rayN-full Package'
|
||||||
|
inputs:
|
||||||
|
rootFolderOrFile: '$(Build.SourcesDirectory)/v2rayN/v2rayN/bin/Release'
|
||||||
|
includeRootFolder: false
|
||||||
|
archiveType: 'zip'
|
||||||
|
archiveFile: '$(Build.ArtifactStagingDirectory)/v2rayN-full.zip'
|
||||||
|
replaceExistingArchive: true
|
||||||
|
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'publish artifact'
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
ArtifactName: 'drop'
|
||||||
|
|
||||||
|
- task: GitHubRelease@1
|
||||||
|
inputs:
|
||||||
|
gitHubConnection: 'tcrelease'
|
||||||
|
repositoryName: 'tony-cloud/v2rayN'
|
||||||
|
action: 'create'
|
||||||
|
target: '$(Build.SourceVersion)'
|
||||||
|
tagSource: 'userSpecifiedTag'
|
||||||
|
tag: '$(Build.SourceBranchName)-$(Build.SourceVersion)'
|
||||||
|
title: '$(Build.SourceBranchName)-$(Build.SourceVersion)'
|
||||||
|
releaseNotesSource: 'inline'
|
||||||
|
releaseNotesInline: |
|
||||||
|
Build by azure pipeline automatically.
|
||||||
|
No release log specified.
|
||||||
|
assets: '$(Build.ArtifactStagingDirectory)/*.zip'
|
||||||
|
isDraft: true
|
||||||
|
isPreRelease: true
|
||||||
|
addChangeLog: false
|
||||||
|
|
Loading…
Reference in a new issue