Skip to content

Commit e03d27b

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

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/psgallery.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ 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+
env:
15+
APIKEY: ${{ secrets.PSGALLERY_TOKEN }}
16+
WORKSPACE: $GITHUB_WORKSPACE
17+
run: ./.github/workflows/publish_psgallery.ps1
18+
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 "$WORKSPACE\DFIR-O365RC" -Repository "PSGallery" -ApiKey $Env:APIKEY

0 commit comments

Comments
 (0)