From 13a5bd008ea0b3dc4cd9d2aa9708dae2371a0dca Mon Sep 17 00:00:00 2001 From: Nat Hillard <72811320+NatHillardUSDS@users.noreply.github.com> Date: Mon, 7 Jun 2021 11:57:46 -0400 Subject: [PATCH] Addresses issue #13 - adding workflow to deploy to Geoplatform AWS (#103) --- .github/workflows/build_deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index cdea3852..9f9a475c 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -59,9 +59,17 @@ jobs: with: name: J40Static path: ./public - - name: Deploy 🚀 + - name: Deploy to Github Pages uses: JamesIves/github-pages-deploy-action@4.1.0 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages # The branch the action should deploy to. FOLDER: public # The folder the action should deploy. + - 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: us-east-1 + - name: Deploy to Geoplatform AWS + run: aws s3 sync ./public/ s3://usds-geoplatform-justice40-website --delete