Skip to content

Commit

Permalink
Merge pull request #45 from teamviewer/Format-publish_production.yml
Browse files Browse the repository at this point in the history
Update publish_production.yml
  • Loading branch information
ChristianJ-TV authored Oct 5, 2023
2 parents 82fb9c4 + af0820e commit 25e6d24
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish_production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PublishProduction
name: Publish_Production

on:
workflow_dispatch:
Expand All @@ -10,21 +10,22 @@ jobs:
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
- name: Publish to powershellgallery.com
# 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/Output/ `
-NuGetApiKey $env:NUGET_APIKEY_PRODUCTION
Publish-Module -Path $env:GITHUB_WORKSPACE/Build/Output/ -NuGetApiKey $env:NUGET_APIKEY_PRODUCTION

0 comments on commit 25e6d24

Please sign in to comment.