This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/jena-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 4833747  Remove build-script from published site
4833747 is described below

commit 48337476092353defafe1ad923d08671192293f8
Author: Andy Seaborne <[email protected]>
AuthorDate: Fri Mar 6 20:23:47 2020 +0000

    Remove build-script from published site
---
 build-script | 71 ------------------------------------------------------------
 1 file changed, 71 deletions(-)

diff --git a/build-script b/build-script
deleted file mode 100755
index 094b01d..0000000
--- a/build-script
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash -x
-## ----
-## Copy of the jena-site job build script
-## https://builds.apache.org/job/Jena_Site/
-## ----------------
-
-set -e
-# Specify source and site branches
-SOURCE="master"
-SITE="asf-site"
-SOURCE_DIR=${PWD}
-
-git checkout ${SOURCE}
-git pull origin ${SOURCE}
-
-# Install Hugo
-TMP_HUGO_DIR="$(mktemp -d)"
-mkdir -p "${TMP_HUGO_DIR}/bin"
-cd "${TMP_HUGO_DIR}" || exit 1
-wget -O hugo.tar.gz 
https://github.com/gohugoio/hugo/releases/download/v0.63.2/hugo_extended_0.63.2_Linux-64bit.tar.gz
-tar xfzv hugo.tar.gz
-mv hugo "${TMP_HUGO_DIR}/bin/"
-export PATH="${TMP_HUGO_DIR}/bin:$PATH"
-
-# Get commit info
-cd "${SOURCE_DIR}" || exit 1
-LAST_SHA=( $(git log -n 1 --pretty=format:"%H") )
-
-# Create temporary directory
-TMP_DIR="$(mktemp -d)"
-OUT_DIR="${TMP_DIR}/content"
-mkdir -p "${OUT_DIR}"
-
-# Build the site  to our temporary folder
-hugo --destination "${OUT_DIR}"
-if [ $? = 0 ]; then
-  echo "Hugo build successful"
-else
-  echo "Hugo build failed"
-  exit 1
-fi
-
-# Switch to the SITE branch
-git checkout "${SITE}"
-git pull origin "${SITE}"
-
-# Remove the current contents of the SITE branch and replace them with the 
contents of the temp folder
-rm -rf "${SOURCE_DIR}/content"
-git rm -r --cached content/*
-mkdir -p "${SOURCE_DIR}/content"
-cp -rT "${TMP_DIR}"/* "${SOURCE_DIR}/content"
-
-# Commit the changes to the SITE branch
-COMMIT_MESSAGE="Updated site from ${SOURCE} (${LAST_SHA})"
-git add -A
-git commit -m "${COMMIT_MESSAGE}" | true
-
-# Delete the temporary folders
-rm -rf "${TMP_DIR}"
-rm -rf "${TMP_HUGO_DIR}"
-
-# Push the SITE to the server
-git push -u origin ${SITE}
-if [ $? = 0 ]; then
-  echo "Push ${SITE} successful"
-else
-  echo "Push ${SITE} failed"
-fi
-
-# Switch back to SOURCE branch
-git checkout "${SOURCE}"

Reply via email to