We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c13e5f8 commit ce24decCopy full SHA for ce24dec
.gitignore
@@ -0,0 +1,2 @@
1
+# Site build directory
2
+public/
publish.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
3
+BUILD_DIR=public
4
+PUBLISH_URL="https://harwellsoftwarecommunity.github.io/"
5
6
+echo "Removing old build directory"
7
+rm -rf ${BUILD_DIR}
8
9
+echo "Building site"
10
+hugo -d ${BUILD_DIR} -b ${PUBLISH_URL}
11
12
+echo "Commit built site"
13
+cd ${BUILD_DIR}
14
+git init
15
+git add .
16
+git commit -m "Build from publish.sh script"
17
18
+echo "Push to remote"
19
+git remote add github "[email protected]:HarwellSoftwareCommunity/harwellsoftwarecommunity.github.io.git"
20
+git push github --force
0 commit comments