This commit is contained in:
Michael Greene 2018-09-09 10:20:36 -05:00
Родитель 48f1366b0a
Коммит aa3cf34399
2 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -1,7 +1,7 @@
<#PSScriptInfo
.VERSION 0.2.0
.VERSION 0.n.appveyorBuild
.GUID a62fccd2-e507-43f9-b29b-1a1d6ef8c337

Просмотреть файл

@ -1,16 +1,16 @@
version: 0.1.0.{build}
version: 0.2.{build}
clone_folder: c:\projects\$(APPVEYOR_PROJECT_NAME)
environment:
RequiredModules: HybridRunbookWorkerDSC,xPSDesiredStateConfiguration
TestResultsUploadURI: https://ci.appveyor.com/api/testresults/nunit/$(APPVEYOR_JOB_ID)
ApplicationID:
secure: mHB9K9ItLkpdxUR7WgBnuBiBOl3qgJT1yizvFZDOgkRxvTV5KoZJ8QuAp+F+EbV0
secure: Z7QfZ2+yYcmwQEFNb7X0B+AFEXwRvjXtBt4FbsKi31ttsGJhbzkZuQ8GN+GO44Wk
SubscriptionID:
secure: fhB5mHXLFRRc1/iwqCA9ibCqwg7qKqkayknhebLsM+FdlrmL80HCRm1vJYafomei
TenantID:
secure: J/my7xsOE9jewR0DDhD+EU5jeo5Bp83/nmIK8a8QI0QLoZXStCOtk1vUjVsKylW2
ApplicationPassword:
secure: zV3r4bwG65rWRfF1L23RYLj7GXVxsMdZtasCsX0+pYA=
secure: 8147v+tITw0n9KWwIqcmkvF95McQR9RthVPCZ01WpBXmOfFfhMgfi6E5/IEsmRl8
BuildFolder: $(APPVEYOR_BUILD_FOLDER)
ProjectName: $(APPVEYOR_PROJECT_NAME)
ProjectID: $(APPVEYOR_POJECT_ID)
@ -40,7 +40,13 @@ build_script:
Invoke-Build -File .\DscConfiguration.Tests\.build.ps1 -Summary
}
before_deploy:
- ps: |
# Update version
$scriptFile = Join-Path $pwd "$env:APPVEYOR_PROJECT_NAME.ps1"
(Get-Content $scriptFile -Raw).Replace("0.n.appveyorBuild", $env:APPVEYOR_BUILD_VERSION) | Set-Content $scriptFile
deploy_script:
- ps: |
write-host "the current branch is $env:APPVEYOR_REPO_BRANCH"
if($env:APPVEYOR_REPO_BRANCH -eq 'Master'){Publish-Module -NuGetAPIKey $env:APIKEY -Path $pwd}
if($env:APPVEYOR_REPO_BRANCH -eq 'Master'){Publish-Script -NuGetAPIKey $env:APIKEY -Path (Join-Path $pwd "$env:APPVEYOR_PROJECT_NAME.ps1")}