diff --git a/.gitignore b/.gitignore index 6dfa780f1c..cd71bb7e36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -public/ resources/ *.swp @@ -204,4 +203,4 @@ TAGS # Files generated when a patch is rejected *.orig -*.rej \ No newline at end of file +*.rej diff --git a/.gitmodules b/.gitmodules index fd5c120114..720b8e9b5a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,7 @@ [submodule "themes/hugo-fresh"] path = themes/hugo-fresh url = https://github.com/StefMa/hugo-fresh.git +[submodule "public"] + path = public + url = https://github.com/numpy/numpy.github.com.git + branch = master diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000000..bef8a54d9f --- /dev/null +++ b/deploy.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# If a command fails then the deploy stops +set -e + +printf "\033[0;32mDeploying updates to GitHub...\033[0m\n" + +# Build the project. +hugo + +# Go To Public folder +cd public + +# Add changes to git. +git add . + +# Commit changes. +msg="rebuilding site $(date)" +if [ -n "$*" ]; then + msg="$*" +fi +git commit -m "$msg" + +# Push source and build repos. +git push origin master diff --git a/public b/public new file mode 160000 index 0000000000..f5a45427af --- /dev/null +++ b/public @@ -0,0 +1 @@ +Subproject commit f5a45427af9923b4d8085a8176b2a446b7bba890