Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 39 lines (32 sloc) 815 Bytes
#!/bin/bash
# Automate Deployment -- bash script
# - run clearPages.sh
# - run
# - git checkout master
# - Pull down the Wiki
# - Run Conversion (See above)
# - Run Cleanup (See above)
# - Run Gatsby Build Operation
# - git checkout gh-pages
# - Copy files to `gh-pages`
# - Commit files to that branch
# - Git push
# Refresh pages directory
./clearPages.sh
# Update wiki repo copy
cd wiki-master
git pull origin master
cd ..
# Copy and Transform .md files from wiki repo
echo "Creating Structure"
node create_structure.js
echo "Converting Files"
node convert_files.js
# Build Output
gatsby build --prefix-links
# Copy generated output to gh-pages on live wiki
cp -r wiki-master/images/* wiki-gh-pages/images/
cp -r public/* wiki-gh-pages/
cp css/* wiki-gh-pages/css/
# Get to work, baby!
gatsby develop
Something went wrong with that request. Please try again.