Skip to content

Commit

Permalink
Update 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 4, 2023
1 parent 292f3d1 commit af0820e
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 af0820e

Please sign in to comment.