This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-pinot-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 059d034 Update commit message
059d034 is described below
commit 059d03404e77abe6c4725dd7d10ac8c9a1dd5d2b
Author: Xiang Fu <[email protected]>
AuthorDate: Thu Apr 29 14:27:40 2021 -0700
Update commit message
---
.github/workflows/scripts/publish-site.sh | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/scripts/publish-site.sh
b/.github/workflows/scripts/publish-site.sh
index 827dcd4..dd00f5a 100755
--- a/.github/workflows/scripts/publish-site.sh
+++ b/.github/workflows/scripts/publish-site.sh
@@ -24,23 +24,24 @@ ROOT_DIR=$(git rev-parse --show-toplevel)
SITE_DIR=${ROOT_DIR}/content
git branch
-# ORIGIN_REPO=$(git remote show origin | grep 'Push URL' | awk -F// '{print
$NF}')
+# Build website
ORIGIN_REPO="https://github.com/apache/incubator-pinot-site"
echo "ORIGIN_REPO: $ORIGIN_REPO"
DEV_TMP=/tmp/pinot-site-dev
-(
- rm -rf $DEV_TMP
- mkdir $DEV_TMP
- cd $DEV_TMP
-
- git clone "$ORIGIN_REPO" .
- git checkout dev
- cd ${DEV_TMP}/website
- npm install yarn
- yarn install
- yarn run build
-)
+rm -rf $DEV_TMP
+mkdir $DEV_TMP
+cd $DEV_TMP
+
+git clone "$ORIGIN_REPO" .
+git checkout dev
+COMMIT_ID=`git rev-parse HEAD`
+GIT_MSG=`git rev-list --pretty --max-count=1 ${COMMIT_ID}`
+cd ${DEV_TMP}/website
+npm install yarn
+yarn install
+yarn run build
+
cd ${ROOT_DIR}
git status
@@ -55,8 +56,6 @@ git status
git config user.name "Pinot Site Updater"
git config user.email "[email protected]"
-COMMIT_ID=`git rev-parse HEAD`
-GIT_MSG=`git rev-list --pretty --max-count=1 ${COMMIT_ID}`
git commit -m "Update Pinot Site from dev branch ${COMMIT_ID}" -m "$GIT_MSG"
git log -2
git push origin asf-site
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]