-
Notifications
You must be signed in to change notification settings - Fork 58
58 lines (47 loc) · 1.59 KB
/
deploy.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Deploy
on:
release:
types:
- released
jobs:
validate:
uses: openfintechio/openfintech/.github/workflows/validate.yml@master
deploy-metadata:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add SSH Agent
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_META_KEY }}
- name: Deploy metadata
run: ./etc/deploy.sh
deploy-docs:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add SSH Agent
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_DOCS_KEY }}
- name: Deploy docs
run: ./etc/deploy-docs.sh
deploy-s3:
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy resources
run: |
aws s3 sync --quiet resources s3://${{ secrets.AWS_BUCKET_NAME }}
aws s3 sync --quiet resources/payment_methods s3://${{ secrets.AWS_BUCKET_NAME }}/payment-methods
aws s3 sync --quiet resources/payout_methods s3://${{ secrets.AWS_BUCKET_NAME }}/payout-methods
aws s3 sync --quiet resources/payment_providers s3://${{ secrets.AWS_BUCKET_NAME }}/payment-providers