v2fly-domain-list-community/azure-pipelines.yml

31 lines
786 B
YAML
Raw Normal View History

2018-12-11 17:01:04 +02:00
jobs:
- job: build_geosite
timeoutInMinutes: 30
pool:
vmImage: 'ubuntu-16.04'
variables:
GOPATH: '$(system.defaultWorkingDirectory)'
steps:
- checkout: none
- task: GoTool@0
inputs:
version: '1.11.2'
- script: |
go version
go get -v -t -d github.com/v2ray/domain-list-community/...
go run github.com/v2ray/domain-list-community/main.go
workingDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'Generate'
- task: CopyFiles@2
inputs:
sourceFolder: '$(system.defaultworkingdirectory)'
contents: 'dlc.dat'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'