File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 5
5
release :
6
6
types :
7
7
- published
8
+ workflow_dispatch :
9
+ inputs :
10
+ environment :
11
+ description : " Environment to run deploy"
12
+ type : environment
13
+ required : true
8
14
9
15
jobs :
10
16
test :
11
17
runs-on : ubuntu-latest
12
18
steps :
13
19
- name : Checkout repository
14
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v4
15
21
16
22
- name : Run tests
17
23
run : |
18
- echo "TODO: Replace this with actual tests "
24
+ echo "Mock testing... "
19
25
20
26
deploy-to-staging :
21
27
needs : test
22
- if : github.ref_name == 'main'
28
+ if : github.event_name == 'push' && github. ref_name == 'main'
23
29
concurrency : staging
24
30
uses : " ./.github/workflows/deploy.yml"
25
31
with :
34
40
with :
35
41
environment : production
36
42
secrets : inherit
43
+
44
+ manual-deployment :
45
+ # needs: test # NOTE: We elect to skip tests on manual deployments
46
+ if : github.event_name == 'workflow_dispatch'
47
+ concurrency : ${{ inputs.environment }}
48
+ uses : " ./.github/workflows/deploy.yml"
49
+ with :
50
+ environment : ${{ inputs.environment }}
51
+ secrets : inherit
You can’t perform that action at this time.
0 commit comments