Skip to content

Commit

Permalink
Update deploy-preview.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Serrata <[email protected]>
  • Loading branch information
sserrata authored Sep 28, 2024
1 parent 343608f commit 490fc5a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ jobs:
fi
echo "Build directory found at: $BUILD_DIR"
echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV
zip -r build.zip "$BUILD_DIR"

- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -217,6 +216,16 @@ jobs:
- name: Unzip build artifact
run: |
unzip build.zip
if [ -d "build" ]; then
BUILD_DIR="."
elif [ -d "websites/pan-dev/build" ]; then
BUILD_DIR="websites/pan-dev"
else
echo "Error: 'build' directory not found in current directory or in websites/pan-dev/"
exit 1
fi
echo "Build directory found at: $BUILD_DIR"
echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV
- name: Deploy to Firebase
id: deploy_preview
Expand Down

0 comments on commit 490fc5a

Please sign in to comment.