Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Commit 3f23698

Browse files
committed
Appveyor deployments
1 parent 0c55943 commit 3f23698

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Allow WMF5 (i.e. PowerShellGallery functionality)
66
os: WMF 5
77

8+
environment:
9+
PSGalleryApiKey:
10+
secure: VGPEr3cXooAZfvnmzCzZ9i0i1Y2pc7BW2k0bWjCkV7WvD+0vKyiy+WwNH12rEdqc
11+
812
skip_commits:
913
message: /updated readme.*|update readme.*s/
1014

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[cmdletbinding()]
44
param(
5-
[string[]]$Task = 'Test'
5+
[string[]]$Task = 'Deploy'
66
)
77

88
function Resolve-Module {

module.psdeploy.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if($ENV:BHProjectName -and $ENV:BHProjectName.Count -eq 1) {
2+
Deploy Module {
3+
By PSGalleryModule {
4+
FromSource $ENV:BHProjectName\Release\
5+
To PSGallery
6+
WithOptions @{
7+
ApiKey = $ENV:PSGalleryApiKey
8+
}
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)