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 30, 2024
1 parent 490fc5a commit 2e13102
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ jobs:
- name: Zip build directory
run: |
if [ -d "build" ]; then
BUILD_DIR="."
BUILD_DIR="build"
elif [ -d "websites/pan-dev/build" ]; then
BUILD_DIR="websites/pan-dev"
BUILD_DIR="websites/pan-dev/build"
else
echo "Error: 'build' directory not found in current directory or in websites/pan-dev/"
exit 1
Expand Down Expand Up @@ -216,16 +216,6 @@ 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 All @@ -236,6 +226,5 @@ jobs:
projectId: pan-dev-f1b58
expires: 30d
channelId: 'pr${{ github.event.number }}'
entryPoint: ${{ env.BUILD_DIR }}
env:
FIREBASE_CLI_PREVIEWS: hostingchannels

0 comments on commit 2e13102

Please sign in to comment.