Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (5 sloc) 332 Bytes
cat ~/blog/public/version.json >> ~/blog/public/releases.json
COMMIT_HASH=`cd ~/blog && git rev-parse HEAD`
DATE=`date +"%Y-%m-%d_%H-%M-%S"`
echo $COMMIT_HASH
cat ~/deployment/version.template | sed -E "s/COMMIT_HASH/$COMMIT_HASH/" | sed -E "s/BRANCH_NAME/master/" | sed -E "s/DEPLOY_DATE/$DATE/" > ~/blog/public/version.json
You can’t perform that action at this time.