Skip to content

v0.1.958

v0.1.958 #636

Workflow file for this run

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/[email protected]
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/[email protected]
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