Skip to content

Commit

Permalink
Added logging and env variable (#15)
Browse files Browse the repository at this point in the history
* Added logging and env variable

* One more error checking

* Updated reademe
  • Loading branch information
marranaga authored Sep 27, 2018
1 parent 33838b2 commit 9b4cb4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .scripts/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@
$PSScriptRootParent = Split-Path $PSScriptRoot -Parent
Write-Host "[Deploy] PSScriptRootParent: ${PSScriptRootParent}" -Foregroundcolor 'Blue' -BackgroundColor 'Magenta'
Write-Host "[Deploy] APPVEYOR_PROJECT_NAME: ${env:APPVEYOR_PROJECT_NAME}" -Foregroundcolor 'Blue' -BackgroundColor 'Magenta'
Write-Host "[Deploy] APPVEYOR_REPO_TAG: ${env:APPVEYOR_REPO_TAG}" -Foregroundcolor 'Blue' -BackgroundColor 'Magenta'
Write-Host "[Deploy] APPVEYOR_REPO_BRANCH: ${env:APPVEYOR_REPO_BRANCH}" -Foregroundcolor 'Blue' -BackgroundColor 'Magenta'

Deploy Module {
By PSGalleryModule ePOwerShell {
FromSource "${PSScriptRootParent}\dev\BuildOutput\ePOwerShell"
To PSGallery
WithOptions @{
ApiKey = $env:PSGalleryApiKey
if (
($env:APPVEYOR_REPO_TAG -eq 'true') -and
($env:APPVEYOR_REPO_BRANCH -eq 'master')
) {
Write-Host "Deploying to PSGallery"
Deploy Module {
By PSGalleryModule ePOwerShell {
FromSource "${PSScriptRootParent}\dev\BuildOutput\ePOwerShell"
To PSGallery
WithOptions @{
ApiKey = $env:PSGalleryApiKey
}
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build status](https://ci.appveyor.com/api/projects/status/t3kx0sy41ouw7cry?svg=true)](https://ci.appveyor.com/project/UNT-CAS/ePOwerShell)
[![Build status](https://ci.appveyor.com/api/projects/status/t3kx0sy41ouw7cry?svg=true)](https://ci.appveyor.com/project/UNTCAS/ePOwerShell)
[![codecov](https://codecov.io/gh/UNT-CAS/ePOwerShell/branch/master/graph/badge.svg)](https://codecov.io/gh/UNT-CAS/ePOwerShell)
[![version](https://img.shields.io/powershellgallery/v/ePOwerShell.svg)](https://www.powershellgallery.com/packages/ePOwerShell)
[![downloads](https://img.shields.io/powershellgallery/dt/ePOwerShell.svg?label=downloads)](https://www.powershellgallery.com/stats/packages/ePOwerShell?groupby=Version)
Expand Down

0 comments on commit 9b4cb4f

Please sign in to comment.