Skip to content

Commit

Permalink
fix github actions bug for dev and prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed May 15, 2024
1 parent 4cd6d1e commit 82c2c99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
else
BRANCH_NAME=$(echo ${{ github.ref }} | sed -n 's/refs\/heads\///p')
if [[ "$BRANCH_NAME" == "dev" ]]; then
rm -rf edge/
rm -rf edge
mkdir -p edge
mv dist/web/* edge/
elif [[ "$BRANCH_NAME" == "main" ]]; then
rm -rf prod/
rm -rf prod
mkdir -p prod
mv dist/web/* prod/
fi
fi
Expand Down

0 comments on commit 82c2c99

Please sign in to comment.