Skip to content

Commit

Permalink
Merge pull request #612 from IATI/merge-codeforiati-and-publishingsta…
Browse files Browse the repository at this point in the history
…ts-switch-git-sh

git.sh: Switch back to git.sh from IATI/IATI-Dashboard live
  • Loading branch information
Bjwebb authored Nov 7, 2024
2 parents ed168b3 + 4511550 commit 9c1d8b9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 75 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/build.yml

This file was deleted.

31 changes: 31 additions & 0 deletions git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/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

cd dashboard

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running plots.py"
python make_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

cd ..

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 9c1d8b9

Please sign in to comment.