-
Notifications
You must be signed in to change notification settings - Fork 119
43 lines (42 loc) · 1.47 KB
/
release.yml
File metadata and controls
43 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
tags: ['v*']
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
jobs:
release:
uses: PowerShellOrg/.github/.github/workflows/powershell-release.yml@main
with:
module-name: Plaster
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:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}