Something went wrong. Try again.
forked from gbury/dolmen
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637#!/bin/bash -e
# Get current verison numberversion=`cat VERSION`
# Enssure we are on master branchgit checkout master
# Generate documentationmake doc(cd doc/scripts && asciidoc index.txt)git add doc/scripts/index.htmlgit commit -m "Update doc index"
# Checkout gh-pagesgit checkout gh-pagesgit pull
# Create doc folder if it does not existsmkdir -p ./$version
# Copy doc to the right locationsgit show master:doc/scripts/index.html &> index.htmlcp -r _build/default/_doc/_html/* ./$version/
# Add potentially new pagesgit add ./$versiongit add ./index.html
# Commit it all & pushgit commit -m "Doc release $version"git push
# Get back to master branchgit checkout master