Skip to content

Commit

Permalink
git.sh: Switch back to using git.sh for doing deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Nov 6, 2024
1 parent 3b24364 commit 7b7893e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 75 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/build.yml

This file was deleted.

34 changes: 34 additions & 0 deletions git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Starting Dashboard generation"

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Removing 'out' directory and creating a new one"
rm -rf out
mkdir out

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Fetching data"
./fetch_data.sh &> fetch_data.log || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running plots.py"
python plots.py || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running make_csv.py"
python make_csv.py || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running speakers kit.py"
python speakers_kit.py || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running make_html.py"
python make_html.py $1 $2|| exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Copying static elements"
cp static/img/favicon.png out/
cp static/img/tablesorter-icons.gif out/

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Make a backup of the old web directory and make new content live"
rsync -a --delete web web.bk
mv web web.1
mv out web
rm -rf web.1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Dashboard generation complete"

0 comments on commit 7b7893e

Please sign in to comment.