|
|
|
@ -38,14 +38,10 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
deploy_staging:
|
|
|
|
deploy_staging:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
needs: build_staging
|
|
|
|
needs: build_staging
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up AWS CLI
|
|
|
|
- name: Set up AWS CLI
|
|
|
|
uses: aws-actions/configure-aws-credentials@v2
|
|
|
|
uses: aws-actions/configure-aws-credentials@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -53,7 +49,7 @@ jobs:
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: ${{ AWS_DEFAULT_REGION }}
|
|
|
|
aws-region: ${{ AWS_DEFAULT_REGION }}
|
|
|
|
|
|
|
|
|
|
|
|
build_staging:
|
|
|
|
build_production:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: production
|
|
|
|
environment: production
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
@ -82,12 +78,10 @@ jobs:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- ./build/web
|
|
|
|
- ./build/web
|
|
|
|
|
|
|
|
|
|
|
|
deploy_staging:
|
|
|
|
deploy_production:
|
|
|
|
environment: production
|
|
|
|
environment: production
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
needs: build_production
|
|
|
|
|
|
|
|
|
|
|
|
needs: build_staging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
- name: Checkout code
|
|
|
|
|