File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,16 @@ jobs:
11
11
- uses : actions/checkout@v1
12
12
13
13
- name : create a deployment
14
- uses : npm/action-deploy@v1
14
+ uses : npm/action-deploy@v2
15
15
id : create-deployment
16
16
with :
17
17
type : create
18
18
token : ${{github.token}}
19
19
logs : https://github.com/npm/action-deploy/actions?query=workflow%3Adeploy
20
20
environment_url : https://npmjs.com
21
+ job_status : ${{job.status}}
21
22
22
23
# add here an actual deployment
23
24
- name : placeholder for actual deployment
24
25
run : sleep 10s
25
26
26
- - name : finish deployment
27
- uses : npm/action-deploy@v1
28
- with :
29
- type : finish
30
- token : ${{github.token}}
31
- status : success
32
- deployment_id : ${{steps.create-deployment.outputs.deployment_id}}
33
-
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Outputs:
31
31
32
32
``` yaml
33
33
- name : create a deployment
34
- uses : npm/action-deploy@v1
34
+ uses : npm/action-deploy@v2
35
35
with :
36
36
type : create
37
37
token : ${{github.token}}
@@ -59,7 +59,7 @@ Outputs: none
59
59
60
60
` ` ` yaml
61
61
- name: delete all deployments in staging
62
- uses: npm/action-deploy@v1
62
+ uses: npm/action-deploy@v2
63
63
with:
64
64
type: delete-all
65
65
token: ${{github.token}}
@@ -84,21 +84,22 @@ Outputs: none
84
84
85
85
` ` ` yaml
86
86
- name: create a deployment
87
- uses: npm/action-deploy@v1
87
+ uses: npm/action-deploy@v2
88
88
id: create-deployment
89
89
with:
90
90
type: create
91
91
token: ${{github.token}}
92
92
logs: https://your-app.com/deployment_logs
93
93
environment: staging
94
94
environment_url: https://staging.your-app.com
95
+ job_status: ${{job.status}}
95
96
96
97
# add your deployment steps here
97
98
- name: placeholder for actual deployment
98
99
run: sleep 10s
99
100
100
101
- name: delete deployment
101
- uses: npm/action-deploy@v1
102
+ uses: npm/action-deploy@v2
102
103
with:
103
104
type: delete
104
105
token: ${{github.token}}
You can’t perform that action at this time.
0 commit comments