Skip to content

Commit

Permalink
check data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
amarouane-ABDELHAK committed Nov 27, 2024
1 parent 40c75b6 commit ab93db4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ jobs:
IFS=',' read -r -a WEBSITES <<< "${{ env.CHANGED_WEBSITES }}"
COMMENT="### ✅ Deploy Preview for *custom-interfaces* is ready! \n \n"
for WEBSITE in "${WEBSITES[@]}"; do
# EMIT
if [ "$WEBSITE" == "emit-ch4plume-v1" ]; then
echo MAP_STYLE="${{ vars.MAP_STYLE }}" >> ./emit-ch4plume-v1/.env
echo MAP_ACCESS_TOKEN="${{ secrets.MAP_ACCESS_TOKEN }}" >> ./emit-ch4plume-v1/.env
Expand All @@ -146,8 +148,11 @@ jobs:
npm run deploy
cd ..
aws s3 sync emit-ch4plume-v1/dist s3://${{ env.S3_BUCKET }}${{ vars.PUBLIC_URL_EMIT }}/${{ env.PR_STRING }}/
aws s3 sync emit-ch4plume-v1/data s3://${{ env.S3_BUCKET }}${{ vars.PUBLIC_URL_EMIT }}/${{ env.PR_STRING }}/
aws s3 sync emit-ch4plume-v1/data s3://${{ env.S3_BUCKET }}${{ vars.PUBLIC_URL_EMIT }}/${{ env.PR_STRING }}/data/
COMMENT+="- 🛰️ emit-ch4plume-v1: ${{ env.WEB_DISTRIBUTION_URL}}${{ vars.PUBLIC_URL_EMIT }}/${{ env.PR_STRING }}/ \n \n"
elif [ "$WEBSITE" == "noaa-cpfp-point" ]; then
echo PUBLIC_URL="${{ vars.PUBLIC_URL_NOAA }}/${{ env.PR_STRING }}" >> ./noaa-cpfp-point/.env
echo MAPBOX_ACCESS_TOKEN="${{ secrets.MAP_ACCESS_TOKEN }}" >> ./noaa-cpfp-point/.env
Expand Down

0 comments on commit ab93db4

Please sign in to comment.