Skip to content

Commit

Permalink
Github Actions, Publishing to PSGallery with Preview build, attempt 0…
Browse files Browse the repository at this point in the history
…4... Next Fix token expiration ... Later deep dive into folder cmdlets based on OpenApi [PublishToPSGalleryAsPreview]
  • Loading branch information
ddemeyer committed Oct 19, 2023
1 parent 38717b4 commit e280b54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]') }}
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Source/ISHRemote/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<!-- Force CI/GithubAction on 20231017 -->
<!-- Force CI/GithubAction on 20231019 -->

<PropertyGroup>
<ProductName>ISHRemote</ProductName>
Expand Down

0 comments on commit e280b54

Please sign in to comment.