Skip to content

Commit dc6e884

Browse files
authored
chore: update readme and deploy.yaml (#5)
1 parent 49aac8d commit dc6e884

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,16 @@ jobs:
1111
- uses: actions/checkout@v1
1212

1313
- name: create a deployment
14-
uses: npm/action-deploy@v1
14+
uses: npm/action-deploy@v2
1515
id: create-deployment
1616
with:
1717
type: create
1818
token: ${{github.token}}
1919
logs: https://github.com/npm/action-deploy/actions?query=workflow%3Adeploy
2020
environment_url: https://npmjs.com
21+
job_status: ${{job.status}}
2122

2223
# add here an actual deployment
2324
- name: placeholder for actual deployment
2425
run: sleep 10s
2526

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-

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Outputs:
3131

3232
```yaml
3333
- name: create a deployment
34-
uses: npm/action-deploy@v1
34+
uses: npm/action-deploy@v2
3535
with:
3636
type: create
3737
token: ${{github.token}}
@@ -59,7 +59,7 @@ Outputs: none
5959

6060
```yaml
6161
- name: delete all deployments in staging
62-
uses: npm/action-deploy@v1
62+
uses: npm/action-deploy@v2
6363
with:
6464
type: delete-all
6565
token: ${{github.token}}
@@ -84,21 +84,22 @@ Outputs: none
8484

8585
```yaml
8686
- name: create a deployment
87-
uses: npm/action-deploy@v1
87+
uses: npm/action-deploy@v2
8888
id: create-deployment
8989
with:
9090
type: create
9191
token: ${{github.token}}
9292
logs: https://your-app.com/deployment_logs
9393
environment: staging
9494
environment_url: https://staging.your-app.com
95+
job_status: ${{job.status}}
9596
9697
# add your deployment steps here
9798
- name: placeholder for actual deployment
9899
run: sleep 10s
99100
100101
- name: delete deployment
101-
uses: npm/action-deploy@v1
102+
uses: npm/action-deploy@v2
102103
with:
103104
type: delete
104105
token: ${{github.token}}

0 commit comments

Comments
 (0)