ci: publish build artifacts (#3103)

* ci: publish build artifacts (per-commit Caddy binaries)

* ci: include OS name in artifact name of *nix binaries so they don't overwrite each other
This commit is contained in:
Mohammed Al Sahaf 2020-02-29 20:09:50 +03:00 committed by GitHub
parent a60da8e7ab
commit e717028f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,18 @@ jobs:
workingDirectory: '$(modulePath)/cmd/caddy'
displayName: Build Caddy
- task: PublishBuildArtifacts@1
condition: eq( variables['Agent.OS'], 'Windows_NT' )
inputs:
pathtoPublish: '$(modulePath)/cmd/caddy/caddy.exe'
artifactName: caddy_v2.exe
- task: PublishBuildArtifacts@1
condition: ne( variables['Agent.OS'], 'Windows_NT' )
inputs:
pathtoPublish: '$(modulePath)/cmd/caddy/caddy'
artifactName: 'caddy_v2_$(Agent.OS)'
# its behavior is governed by .golangci.yml
- script: |
(golangci-lint run --out-format junit-xml) > test-results/lint-result.xml