From cc800b373b86c760b8255762db354ef1df07439d Mon Sep 17 00:00:00 2001 From: Volumio Date: Sun, 5 May 2024 10:41:43 +0200 Subject: [PATCH] Tweaks --- travis-script.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/travis-script.sh b/travis-script.sh index 67b38f7ee..9c5e43045 100644 --- a/travis-script.sh +++ b/travis-script.sh @@ -4,33 +4,38 @@ set -e # Build the classic UI and move it into "dist-volumio" +echo "Building Volumio UI" npm run build:volumio && mv dist dist-volumio # Build the v3 UI and move it into "dist-volumio3" +echo "Building Volumio3 UI" npm run build:volumio3 && mv dist dist-volumio3 -# Copy the classic UI into the folder which will be deployed to Firebase -cp -r dist-volumio firebase-hosting - -# Store actual directory -P_DIR=$(pwd) - # Configure GIT user +echo "Configuring Git User" git config --global user.name "Volumio" git config --global user.email "info@volumio.org" # Push classic UI on 'dist' branch -cd "${P_DIR}/dist-volumio" +echo "Preparing dist branch" +cd "dist-volumio" # Fallback to 127.0.0.1 (for Ui on non-networked systems) +echo "Writing local-config.json" echo '{"localhost": "http://127.0.0.1:3000"}' > app/local-config.json +echo "Initializing Git Repo" git init && git add . && git commit -m "Deploy to dist branch" git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:dist > /dev/null 2>&1 +cd .. + # Push v3 UI on 'dist3' branch -cd "${P_DIR}/dist-volumio3" +echo "Preparing dist3 branch" +cd "dist-volumio3" # Fallback to 127.0.0.1 (for Ui on non-networked systems) +echo "Writing local-config.json" echo '{"localhost": "http://127.0.0.1:3000"}' > app/local-config.json -git init && git add . && git commit -m "Deploy to dist branch" +echo "Initializing Git Repo" +git init && git add . && git commit -m "Deploy to dist3 branch" git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:dist3 > /dev/null 2>&1 -cd "${P_DIR}" \ No newline at end of file +cd .. \ No newline at end of file