This is an automated email from the ASF dual-hosted git repository. xiangfu pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-pinot-site.git
commit 31ec3289523c931df468b1ba7fa10e4e7ad6012a Author: Xiang Fu <xiangfu.1...@gmail.com> AuthorDate: Fri Apr 23 16:30:57 2021 -0700 adding github action to publish asf-site --- .../workflows/website-publish.yml | 47 +++++++--------------- README.md | 4 +- 2 files changed, 18 insertions(+), 33 deletions(-) diff --git a/website/scripts/publish_site.sh b/.github/workflows/website-publish.yml similarity index 51% rename from website/scripts/publish_site.sh rename to .github/workflows/website-publish.yml index 9b3a87c..ed1a9ed 100644 --- a/website/scripts/publish_site.sh +++ b/.github/workflows/website-publish.yml @@ -1,4 +1,3 @@ -#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file @@ -18,34 +17,18 @@ # under the License. # -set -e - -ROOT_DIR=$(git rev-parse --show-toplevel) -WORK_DIR=${ROOT_DIR}/build -ME=`basename $0` -echo "Basename $ME" - -# 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" - -SITE_TMP=/tmp/pinot-site -( - - cd $ROOT_DIR - rm -rf $SITE_TMP - mkdir $SITE_TMP - cd $SITE_TMP - - git clone "https://$GH_TOKEN@$ORIGIN_REPO" . - git config user.name "Pinot Site Updater" - git config user.email "d...@pinot.apache.org" - git checkout asf-master - - # Clean content directory - rm -rf $SITE_TMP/content/ - mkdir $SITE_TMP/content - - # Copy the generated directory to asf folder - cp -r $WORK_DIR/* $SITE_TMP/content -) \ No newline at end of file +name: Publish Website +on: + push: + branches: + - dev +jobs: + publish-website: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: 'asf-site' + - name: Website build + run: | + .github/workflows/scripts/publish-site.sh diff --git a/README.md b/README.md index 9f7343d..3c090a0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Apache Pinot Site This repo hosts the source code of [Apache Pinot Official Website](https://pinot.apache.org/). -Update Website Content +Test Website ====================== Build from source @@ -15,6 +15,8 @@ Build from source $ website/scripts/build-site.sh ``` +The results are moved to directory: `content` + Maintainer ========== --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org