src: Add publish script

Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
This commit is contained in:
Harsh Shandilya 2018-06-14 16:49:00 +05:30
parent 51247ec7f5
commit 7e2525dd6f
1 changed files with 9 additions and 0 deletions

9
publish.sh Executable file
View File

@ -0,0 +1,9 @@
#! /usr/bin/env bash
git push origin src
git_hash=$(git rev-parse --short HEAD)
hugo
cd public
git add .
git commit --signoff --gpg-sign -m "Rebuild at ${git_hash}"
git push origin master