Skip to content

Commit 828d7f3

Browse files
committed
feat: dropping the deploy_ui_* workflows in favour of a generic one
1 parent 66eba37 commit 828d7f3

File tree

3 files changed

+13
-162
lines changed

3 files changed

+13
-162
lines changed

.github/workflows/deploy_ui_review.yml renamed to .github/workflows/deploy_ui_generic.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Deploy UI to Review
1+
name: Deploy UI Generic
2+
run-name: Deploy UI to - ${{ github.event.inputs.environment || 'review' }}
23

34
on:
45
push:
@@ -9,7 +10,15 @@ on:
910
description: "Leave blank to use current HEAD, or provide an override commit SHA"
1011
type: string
1112
required: false
12-
13+
environment:
14+
description: "Environment to deploy to"
15+
required: true
16+
default: "review"
17+
type: choice
18+
options:
19+
- review
20+
- staging
21+
- production
1322
jobs:
1423
ref:
1524
name: Load Commit Ref
@@ -70,7 +79,7 @@ jobs:
7079
secrets: inherit
7180
with:
7281
refspec: ${{ needs.ref.outputs.refspec }}
73-
environment: review
82+
environment: ${{ inputs.environment }}
7483

7584
push-ui:
7685
name: Push UI to Review (S3)
@@ -79,4 +88,4 @@ jobs:
7988
secrets: inherit
8089
with:
8190
refspec: ${{ needs.ref.outputs.refspec }}
82-
environment: review
91+
environment: ${{ inputs.environment }}

.github/workflows/deploy_ui_production.yml

-79
This file was deleted.

.github/workflows/deploy_ui_staging.yml

-79
This file was deleted.

0 commit comments

Comments
 (0)