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
25 changes: 18 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
description: "The version to publish. Leave empty to use the version in the module manifest."
required: false
type: string
isPrerelease:
description: "Is this a prerelease version?"
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
Expand All @@ -19,14 +19,25 @@ on:
required: false
type: boolean
default: false
permissions:
contents: write
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

jobs:
publish:
name: Publish Module
uses: PowerShellOrg/.github/.github/workflows/powershell-release.yml@main
with:
version: ${{ inputs.version || '' }}
isPrerelease: ${{ inputs.isPrerelease || false }}
force: ${{ inputs.force || false }}
dry_run: ${{ inputs.dry_run || false }}
secrets: inherit
create_release: ${{ github.event_name != 'workflow_dispatch' || inputs.create_release }}
publish: ${{ github.event_name != 'workflow_dispatch' || inputs.publish }}
secrets:
PS_GALLERY_KEY: ${{ secrets.PS_GALLERY_KEY }}
43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

Loading