diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index b4580b1..699d0d2 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -69,11 +69,13 @@ jobs: $apiKey = '${{ secrets.POWERSHELLGALLERY }}' $modulePath = "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 + (Get-Content $($manifest.fullname)) -replace '0.0.0', $ENV: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 \ No newline at end of file + Publish-Module -Path $manifest.DirectoryName -NuGetApiKey $apiKey -Verbose + env: + NEW_TAG: ${{ steps.bump.outputs.new_tag }} \ No newline at end of file