Skip to content

Commit 3380eb4

Browse files
EmilienCourtEmilienCourt
authored andcommitted
Fix PSGallery. See PowerShell/PSResourceGet#1806
1 parent e36e932 commit 3380eb4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/psgallery.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Publish to PowerShell Gallery
14-
run: docker run -v $GITHUB_WORKSPACE:/mount_point mcr.microsoft.com/dotnet/sdk:8.0 pwsh -Command Publish-PSResource -Path "/mount_point/DFIR-O365RC" -Repository "PSGallery" -ApiKey "${{ secrets.PSGALLERY_TOKEN }}" -SkipModuleManifestValidate $true
14+
run: ./.github/workflows/publish_psgallery.ps1
15+
shell: pwsh
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Workaround for known issue: https://github.com/PowerShell/PSResourceGet/issues/1806
2+
Get-PSResourceRepository | Out-Null
3+
Publish-PSResource -Path "$PSScriptRoot\DFIR-O365RC" -Repository "PSGallery" -ApiKey "${{ secrets.PSGALLERY_TOKEN }}" -SkipModuleManifestValidate $true

0 commit comments

Comments
 (0)