added an additional zip file type to the shapefile upload #497
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Test Branch Deployment | |
on: | |
push: | |
branches-ignore: | |
- develop | |
- master | |
jobs: | |
deploy: | |
name: Build and Upload to S3 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: What is the version number? | |
run: echo Creating test deployment for ${GITHUB_REF:11} branch. | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Create Build | |
env: | |
REACT_APP_PLANET_API_KEY: ${{ secrets.REACT_APP_PLANET_API_KEY }} | |
run: | | |
npm install | |
npm run build | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.MB_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.MB_AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Copy files to S3 with the AWS CLI | |
run: | | |
aws s3 rm --recursive s3://${{ secrets.MB_AWS_S3_BUCKET }}/gfw-mapbuilder/pull-requests/${GITHUB_REF:11} | |
aws s3 sync --acl public-read --include 'dist/' dist s3://${{ secrets.MB_AWS_S3_BUCKET }}/gfw-mapbuilder/pull-requests/${GITHUB_REF:11} |