Skip to content

Commit

Permalink
Get correct psd1 file in a more clear way
Browse files Browse the repository at this point in the history
  • Loading branch information
beau-witter committed Mar 1, 2023
1 parent e671271 commit a5331ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ jobs:
Install-Module -Name PowerShellGet -AllowPrerelease -Force
}
$psd1File = (Get-ChildItem -Path ${{ env.PublishPath }} -Recurse -Filter "${{ env.ModuleName }}.psd1").FullName
# GitHub Packages
Register-PSResourceRepository -Name "${{ env.ModuleName }}-repository" -URI ${{ env.GitHubPackageUri }} -Trusted
Publish-PSResource -Path "${{ env.PublishPath }}/${{ env.ModuleName }}/**/**/*.psd1" -ApiKey ${{ secrets.GITHUB_TOKEN }} -Repository "${{ env.ModuleName }}-repository"
Publish-PSResource -Path $psd1File -ApiKey ${{ secrets.GITHUB_TOKEN }} -Repository "${{ env.ModuleName }}-repository"
# PSGallery
Publish-PSResource -Path "${{ env.PublishPath }}/${{ env.ModuleName }}/**/**/*.psd1" -ApiKey ${{ secrets.PSGALLERY }} -Repository PSGallery
Publish-PSResource -Path $psd1File -ApiKey ${{ secrets.PSGALLERY }} -Repository PSGallery

0 comments on commit a5331ab

Please sign in to comment.