Skip to content

Commit b232e8a

Browse files
committed
deploy-2-start.yml: Added deployment type input to disallow prerelease GitHub Releases
1 parent f708dd0 commit b232e8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: .github/workflows/deploy-2-start.yml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ concurrency: ${{ inputs.deployment-environment }}
33
on:
44
workflow_call:
55
inputs:
6+
type:
7+
type: string
8+
required: true
9+
description: The type of deployment - either 'release' or 'prerelease'
610
model:
711
type: string
812
required: true
@@ -72,11 +76,14 @@ jobs:
7276
7377
# Release
7478
- name: Get Release Metadata
79+
if: inputs.type == 'release'
7580
run: |
7681
rsync -e 'ssh -i ${{ steps.ssh.outputs.private-key-path }}' \
7782
'${{ secrets.USER}}@${{ secrets.HOST_DATA }}:${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.*' \
7883
./${{ inputs.env-name }}
84+
7985
- name: Create Release
86+
if: inputs.type == 'release'
8087
uses: softprops/[email protected]
8188
with:
8289
tag_name: ${{ inputs.version }}

0 commit comments

Comments
 (0)