Skip to content

v2.0.2

v2.0.2 #24

name: Publish_Production
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: windows-latest
steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v3
# Build package
- name: Build package
shell: pwsh
run: |
$ProgressPreference='SilentlyContinue'
Install-Module platyPS,BuildHelpers -Force -SkipPublisherCheck -Scope CurrentUser
& $env:GITHUB_WORKSPACE/Build/New-Package.ps1 -Verbose
# Publish to PowershellGallery.com
- name: Publish to PowershellGallery.com
env:
NUGET_APIKEY_PRODUCTION: ${{ secrets.NUGET_APIKEY_PRODUCTION }}
shell: pwsh
run: |
$ProgressPreference='SilentlyContinue'
Publish-Module -Path $env:GITHUB_WORKSPACE/Build/TeamViewerPS/ -NuGetApiKey $env:NUGET_APIKEY_PRODUCTION