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 4c4629f adding publish-site script 4c4629f is described below commit 4c4629fa2551b933de42e6e6eb43b43084792e40 Author: Xiang Fu <xiangfu.1...@gmail.com> AuthorDate: Fri Apr 23 16:28:50 2021 -0700 adding publish-site script --- .github/workflows/scripts/publish-site.sh | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.github/workflows/scripts/publish-site.sh b/.github/workflows/scripts/publish-site.sh new file mode 100755 index 0000000..89ec5ee --- /dev/null +++ b/.github/workflows/scripts/publish-site.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +set -x -e +ls -lrth +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}') +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 +) +cd ${ROOT_DIR} + +git status + +rm -rf ${SITE_DIR} +## copy generated site +mv ${DEV_TMP}/website/build ${SITE_DIR} + +git status +git add . +git status +git commit -m "Update Pinot Site" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org