From e280b5477b7b930ff2858553090f0ef85b426ed7 Mon Sep 17 00:00:00 2001 From: ddemeyer Date: Thu, 19 Oct 2023 11:43:46 +0200 Subject: [PATCH] Github Actions, Publishing to PSGallery with Preview build, attempt 04... Next Fix token expiration ... Later deep dive into folder cmdlets based on OpenApi [PublishToPSGalleryAsPreview] --- .github/workflows/continuous-integration.yml | 4 ++-- Source/ISHRemote/Directory.Build.props | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 476e7ca0..76174ca7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -186,7 +186,7 @@ jobs: path: Cmdlets.Pester.Tests.xml if: ${{ always() }} - - name: "Publish to PowerShellGallery as Prerelease" + - name: "Publish to PowerShellGallery if commit holds [PublishToPSGalleryAsPreview]" env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} if: ${{ success() && contains(github.event.head_commit.message, '[PublishToPSGalleryAsPreview]') }} @@ -204,7 +204,7 @@ jobs: if($remoteModule.Version -ne $fullVersion) { echo ("Found earlier module[ISHRemote] of version["+($remoteModule.Version)+"]. Publishing module with version[$fullVersion]!") - # Publish-Module -Path $packageRootFolderPath -Repository PSGallery -NuGetApiKey $env:NUGET_API_KEY -Verbose -Force -WhatIf #-ErrorAction:Continue + Publish-Module -Path $packageRootFolderPath -Repository PSGallery -NuGetApiKey $env:NUGET_API_KEY -Verbose -Force -WhatIf #-ErrorAction:Continue } else { diff --git a/Source/ISHRemote/Directory.Build.props b/Source/ISHRemote/Directory.Build.props index 05ac0ddb..a1dc806c 100644 --- a/Source/ISHRemote/Directory.Build.props +++ b/Source/ISHRemote/Directory.Build.props @@ -1,5 +1,5 @@ - + ISHRemote