-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (33 loc) · 1.05 KB
/
deploy.yml
File metadata and controls
41 lines (33 loc) · 1.05 KB
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
36
37
38
39
40
41
name: Deploy
on: [deployment]
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- 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 }}
yarn install
ng build --prod
aws s3 sync www/ s3://apspace-production/ --acl public-read
aws cloudfront create-invalidation --distribution-id E2U0MAK0TADMRA --paths "/*"
- 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 }}