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
36 changes: 35 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,41 @@ on:
branches:
- main
workflow_dispatch:
inputs:
version:
description: "The version to publish. Leave empty to use the version in the module manifest."
required: false
type: string
force:
description: "If true, bypass the PSGallery version existence check. Use when re-triggering a failed publish job (pattern: force=true, create_release=false, publish=true)."
required: false
type: boolean
default: false
dry_run:
description: "If true, skip actual publishing and just validate the workflow logic."
required: false
type: boolean
default: false
create_release:
description: "If false, skip creating the GitHub release and tag."
required: false
type: boolean
default: true
publish:
description: "If false, skip publishing to PowerShell Gallery."
required: false
type: boolean
default: true
permissions:
contents: write
jobs:
build:
publish:
name: Publish Module
uses: HeyItsGilbert/.github/.github/workflows/PublishModule.yml@main
with:
version: ${{ inputs.version || '' }}
force: ${{ inputs.force || false }}
dry_run: ${{ inputs.dry_run || false }}
create_release: ${{ github.event_name != 'workflow_dispatch' || inputs.create_release }}
publish: ${{ github.event_name != 'workflow_dispatch' || inputs.publish }}
secrets: inherit
2 changes: 1 addition & 1 deletion requirements.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Target = 'CurrentUser'
}
'Pester' = @{
Version = '5.6.1'
Version = '5.7.1'
Parameters = @{
SkipPublisherCheck = $true
}
Expand Down
Loading