-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (39 loc) · 1.29 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# See http://www.appveyor.com/docs/appveyor-yml for many more options
#Publish to PowerShell Gallery with this key
environment:
PSGalleryNugetApiKey:
secure: fofEUuf2mDMkFE3ke3QIKvwP8QSznudnLu4rdt/3XvjjB51bT1kPXxkbf8qFvbUS
GithubAuthToken:
secure: CwUygr6V4pPF9MPszRVEhQ6DX+1Q7r1aAsGPFU8b1TtogYnMu0A/kotLtDjJEzeH
image: Visual Studio 2017
skip_commits:
files:
- README.md
init:
# Set "build version number" to "tag name" (when tagged) and set $env:projectName to the name of the repository
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
$env:PackageVersion = "$env:APPVEYOR_REPO_TAG_NAME"
}
$env:ProjectName = ($env:APPVEYOR_REPO_NAME -split '/')[1]
install:
- cmd: git submodule update --init --recursive
build_script:
- ps: . .\build\build.ps1
artifacts:
- path: $(ProjectName)
deploy:
- provider: GitHub
auth_token: $(GithubAuthToken)
draft: true
prerelease: false
on:
branch: master
appveyor_repo_tag: true
after_deploy:
- ps: Publish-Module -Path (Join-Path -Path $env:APPVEYOR_BUILD_FOLDER -ChildPath $env:ProjectName) -NuGetApiKey $env:PSGalleryNugetApiKey -Verbose -Force
on:
branch: master
appveyor_repo_tag: true