Addresses issue #13 - adding workflow to deploy to Geoplatform AWS (#103)

This commit is contained in:
Nat Hillard 2021-06-07 11:57:46 -04:00 committed by GitHub
parent 63d33b40d0
commit 13a5bd008e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,9 +59,17 @@ jobs:
with: with:
name: J40Static name: J40Static
path: ./public path: ./public
- name: Deploy 🚀 - name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.0 uses: JamesIves/github-pages-deploy-action@4.1.0
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to. BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy. 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