Skip to content

Commit

Permalink
Update publish-module.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Mar 29, 2024
1 parent 2dd6ede commit 113393a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish-module.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: publish-module
name: Create PowerShell module release artifacts and publish them to GitHub and PowerShell Gallery

on:
workflow_dispatch:

permissions:
contents: read
checks: write
id-token: write

jobs:
build-validation:
uses: ./.github/workflows/build-validation.yaml

create-release:
needs: build-validation
runs-on: ubuntu-latest
runs-on: windows-latest
permissions:
id-token: write
contents: write
checks: write

steps:

- uses: actions/checkout@v3
Expand All @@ -24,12 +24,12 @@ jobs:
shell: pwsh
run: |
$ModuleRoot = "$($env:GITHUB_WORKSPACE)/powershell"
$ManifestPath = "$($ModuleRoot)/Maester.psd1"
if ( -not (Test-Path $ManifestPath )) {
Write-Error "Could not find PowerShell module manifest ($ManifestPath)"
$ManfifestPath = "$($ModuleRoot)/maester.psd1"
if ( -not (Test-Path $ManfifestPath )) {
Write-Error "Could not find PowerShell module manifest ($ManfifestPath)"
throw
} else {
$CurrentVersion = Import-PowerShellDataFile $ManifestPath | Select-Object -ExpandProperty ModuleVersion
$CurrentVersion = Import-PowerShellDataFile $ManfifestPath | Select-Object -ExpandProperty ModuleVersion
Add-Content -Path $env:GITHUB_OUTPUT -Value "tag=$CurrentVersion"
}
Expand Down Expand Up @@ -84,4 +84,4 @@ jobs:
makeLatest: legacy
prerelease: false
tag: ${{ steps.moduleversion.outputs.tag }}
commit: ${{ github.sha }}
commit: ${{ github.sha }}

0 comments on commit 113393a

Please sign in to comment.