Skip to content

Commit

Permalink
Merge pull request #375 from NASA-IMPACT/develop
Browse files Browse the repository at this point in the history
v2.4.1-beta
  • Loading branch information
danielfdsilva authored Jul 5, 2022
2 parents 1d7563b + 269694d commit 709876c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deploy the site to AWS S3 on a push to specific branches

name: Deploy Production - GCC (S3)
name: Deploy Production - MCP (S3)

on:
push:
Expand All @@ -9,7 +9,8 @@ on:

env:
NODE: 14
DOMAIN_PROD: https://d7qd3iuafxwad.cloudfront.net
# DOMAIN_PROD: https://www.earthdata.nasa.gov/apt
DOMAIN_PROD: /apt
DEPLOY_BUCKET_PROD: algorithm-publication-tool
DEPLOY_BUCKET_PROD_REGION: us-west-2

Expand Down Expand Up @@ -78,20 +79,25 @@ jobs:
with:
node-version: ${{ env.NODE }}

# - name: Serve site from subpath
# run: |
# mkdir deploy/
# mv dist deploy/apt
# cp deploy/apt/index.html deploy/index.html
- name: Serve site from subpath
run: |
mkdir deploy/
mv dist deploy/apt
cp deploy/apt/index.html deploy/index.html
- name: Deploy to S3 Production
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
# acl is not permitted with current credentials
# args: --acl public-read --follow-symlinks --delete
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ env.DEPLOY_BUCKET_PROD }}
AWS_REGION: ${{ env.DEPLOY_BUCKET_PROD_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# When serving from a subpath:
# SOURCE_DIR: ./deploy
SOURCE_DIR: ./dist
# Otherwise use the build directory directly:
# SOURCE_DIR: ./dist
SOURCE_DIR: ./deploy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "apt-frontend",
"description": "Interface for the Algorithm Publication Tool",
"version": "2.4.0-beta",
"version": "2.4.1-beta",
"author": {
"name": "Development Seed",
"url": "https://developmentseed.org"
Expand Down

0 comments on commit 709876c

Please sign in to comment.