Skip to content

Commit e5a30ee

Browse files
committed
chore: add deploy action
1 parent 6587792 commit e5a30ee

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches:
5+
- deploy-**
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: create a deployment
14+
uses: npm/action-deploy@v1
15+
id: create-deployment
16+
with:
17+
type: create
18+
token: ${{github.token}}
19+
20+
# add here an actual deployment
21+
- name: placeholder for actual deployment
22+
run: sleep 10s
23+
24+
- name: finish deployment
25+
uses: npm/action-deploy@v1
26+
with:
27+
type: finish
28+
token: ${{github.token}}
29+
status: success
30+
deployment_id: ${{steps.create-deployment.outputs.deployment_id}}
31+

0 commit comments

Comments
 (0)