Skip to content

Commit

Permalink
Verbose push
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed May 5, 2024
1 parent 9d56f34 commit 5b1602d
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 166 deletions.
6 changes: 6 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,30 @@ rm -rf dist || exit 0;
mkdir dist;

# Build Volumio UI
echo "Building Volumio UI"
gulp build --theme="volumio" --env="production"

# 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"}' > dist/app/local-config.json

# go to the dist directory and create a *new* Git repo
echo "Initializing Git Repo"
cd dist
git init

# inside this git repo we'll pretend to be a new user
echo "Writing Git Config"
git config user.name "Volumio"
git config user.email "info@volumio.org"

# Deploy
echo "Deploying to Dist Branch"
git add .
git commit -m "Deploy to Dist Branch"

# Force push from the current repo's master branch to the dist branch for deployment
echo "Pushing to Dist Branch"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:dist > /dev/null 2>&1

cd ..
Expand Down
Loading

0 comments on commit 5b1602d

Please sign in to comment.