forked from appveyor/build-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-byoc-ps-module.yml
22 lines (18 loc) · 1.23 KB
/
appveyor-byoc-ps-module.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
build_script:
# copy module contents
- ps: New-Item AppVeyorBYOC -Type Directory | Out-Null
- ps: Copy-Item -Path appveyor-byoc-psm\* -Destination AppVeyorBYOC
- ps: New-Item AppVeyorBYOC\scripts -Type Directory | Out-Null
- ps: Copy-Item -Path scripts\* -Destination AppVeyorBYOC\scripts -Recurse
- ps: New-Item AppVeyorBYOC\hyper-v -Type Directory | Out-Null
- ps: Copy-Item -Path hyper-v\* -Destination AppVeyorBYOC\hyper-v -Recurse
- ps: New-Item AppVeyorBYOC\http -Type Directory | Out-Null
- ps: Copy-Item -Path http\* -Destination AppVeyorBYOC\http -Recurse
- ps: Copy-Item -Path AppVeyorBYOC-Common.ps1 -Destination AppVeyorBYOC
- ps: Copy-Item -Path Connect-*.ps1 -Destination AppVeyorBYOC
- ps: Copy-Item -Path *.json -Destination AppVeyorBYOC
# publish module
- ps: (Get-Content AppVeyorBYOC\AppVeyorBYOC.psd1).replace("ModuleVersion = '1.0.0'", "ModuleVersion = '$env:APPVEYOR_BUILD_VERSION'") | Set-Content AppVeyorBYOC\AppVeyorBYOC.psd1
- ps: if ($env:APPVEYOR_REPO_BRANCH -ne 'master') {(Get-Content AppVeyorBYOC\AppVeyorBYOC.psd1).replace("# Prerelease = 'beta'", "Prerelease = 'beta'") | Set-Content AppVeyorBYOC\AppVeyorBYOC.psd1}
- ps: Publish-Module -Path $env:APPVEYOR_BUILD_FOLDER\AppVeyorBYOC -NuGetApiKey $env:psg_api_key
test: off