You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2021/04/27 04:48:03 UTC
[incubator-pinot-site] branch dev updated (73fcb86 -> 31ec328)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-pinot-site.git.
discard 73fcb86 adding github action to publish asf-site
new 31ec328 adding github action to publish asf-site
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (73fcb86)
\
N -- N -- N refs/heads/dev (31ec328)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 4 +++-
website/scripts/publish_site.sh | 51 -----------------------------------------
2 files changed, 3 insertions(+), 52 deletions(-)
delete mode 100644 website/scripts/publish_site.sh
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[incubator-pinot-site] 01/01: adding github action to publish
asf-site
Posted by xi...@apache.org.
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 <xi...@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 "dev@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-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org