Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/CreateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,18 @@ jobs:
files: output/release.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Module to PowerShell Gallery
shell: pwsh
run: |
$apiKey = '${{ secrets.POWERSHELLGALLERY }}'
$modulePath = "C:\a\PiHoleShell\PiHoleShell\PiHoleShell" # Change to your actual module folder
$manifest = Get-ChildItem -Path $modulePath -Filter PiHoleShell.psd1 -Recurse | Select-Object -First 1
Get-Content $($manifest.fullname) -replace '0.0.0', ${{ steps.bump.outputs.new_tag }} | Out-File $manifest.fullname

if (-not $manifest) {
throw "No module manifest (*.psd1) found in $modulePath"
}

Write-Host "Publishing module: $($manifest.FullName)"
Publish-Module -Path $manifest.DirectoryName -NuGetApiKey $apiKey -Verbose
Binary file modified PiHoleShell/PiHoleShell.psd1
Binary file not shown.
Loading