Skip to content

Commit ddc3004

Browse files
Add option to request packaging the release in the repo
1 parent f60d073 commit ddc3004

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable_pypi_deployment.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: Whether the package should be published or not
1717
required: true
1818
type: boolean
19+
release:
20+
description: Whether the package should be packaged as a release or not
21+
required: false
22+
type: boolean
23+
default: true
1924
jfrog_deployment:
2025
description: If the Python package should be pushed on Ledger Jfrog or not.
2126
Ignored if `publish` is `false`.
@@ -109,7 +114,7 @@ jobs:
109114
path: ${{ inputs.package_directory }}/dist
110115

111116
- name: Publish a release on the repo
112-
if: ${{ success() && inputs.publish }}
117+
if: ${{ success() && inputs.publish && inputs.release }}
113118
uses: "marvinpinto/action-automatic-releases@latest"
114119
with:
115120
automatic_release_tag: "v${{ env.TAG_VERSION }}"

0 commit comments

Comments
 (0)