-
Notifications
You must be signed in to change notification settings - Fork 15
35 lines (30 loc) · 934 Bytes
/
deploy.yml
File metadata and controls
35 lines (30 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'Deploy'
on: ['deployment']
jobs:
deployment:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v1'
- name: 'Deployment pending'
uses: 'deliverybot/deployment-status@master'
with:
state: 'pending'
token: '${{ github.token }}'
- name: 'Deploy ${{ github.event.deployment.environment }}'
run: |
echo "task - ${{ github.event.deployment.task }}"
echo "environment - ${{ github.event.deployment.task }}"
echo "payload - ${{ github.event.deployment.payload }}"
- name: 'Deployment success'
if: success()
uses: 'deliverybot/deployment-status@master'
with:
state: 'success'
token: '${{ github.token }}'
- name: 'Deployment failure'
if: failure()
uses: 'deliverybot/deployment-status@master'
with:
state: 'failure'
token: '${{ github.token }}'