Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yelynnn authored Feb 8, 2025
1 parent 1d86a5e commit 8e973d8
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,33 @@ jobs:
apk add ruby
gem install mustache
- name: Ensure build.sh has execute permissions
run: chmod +x ./build.sh

- name: Run build script
run: |
echo "🔧 Running build script..."
sh -x ./build.sh || { echo "🚨 build.sh 실행 실패!"; exit 1; }
sh -x ./build.sh
- name: Check available directories after build
run: |
echo "🔍 Checking directories after build..."
ls -al
echo "🔍 Checking inside subdirectories..."
find . -type d
echo "🔍 Checking possible build output folders..."
ls -al output || echo "⚠️ output directory not found!"
ls -al dist || echo "⚠️ dist directory not found!"
ls -al build || echo "⚠️ build directory not found!"
- name: Detect correct build folder
id: detect-folder
run: |
echo "🔎 Detecting build folder..."
BUILD_DIR=""
for dir in output dist build public artifact docs; do
if [ -d "$dir" ]; then
BUILD_DIR=$dir
break
fi
done
if [ -z "$BUILD_DIR" ]; then
echo "🚨 ERROR: No known build directory found!"
if [ -d "output" ]; then
echo "BUILD_DIR=output" >> $GITHUB_ENV
elif [ -d "dist" ]; then
echo "BUILD_DIR=dist" >> $GITHUB_ENV
elif [ -d "build" ]; then
echo "BUILD_DIR=build" >> $GITHUB_ENV
else
echo "🚨 ERROR: No known build directory (output, dist, build) found!"
exit 1
fi
echo "BUILD_DIR=$BUILD_DIR" >> $GITHUB_ENV
echo "✅ Build directory detected: $BUILD_DIR"
- name: Pushes to another repository
Expand Down

0 comments on commit 8e973d8

Please sign in to comment.