From af0820ea4175e52236d000801f72fbc954e2e380 Mon Sep 17 00:00:00 2001 From: "Christian J. (TV)" <45047468+ChristianJ-TV@users.noreply.github.com> Date: Wed, 4 Oct 2023 18:53:47 +0200 Subject: [PATCH] Update publish_production.yml Update publish_production.yml --- .github/workflows/publish_production.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish_production.yml b/.github/workflows/publish_production.yml index 8b5fc43..301c8bb 100644 --- a/.github/workflows/publish_production.yml +++ b/.github/workflows/publish_production.yml @@ -1,4 +1,4 @@ -name: PublishProduction +name: Publish_Production on: workflow_dispatch: @@ -10,8 +10,10 @@ 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: | @@ -19,12 +21,11 @@ jobs: 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