You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2019/12/09 17:23:54 UTC

[incubator-heron] branch master updated: Joshfischer/finalize-ci-website (#3418)

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

joshfischer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/master by this push:
     new dcd1b92  Joshfischer/finalize-ci-website (#3418)
dcd1b92 is described below

commit dcd1b924e0a9e9df31ba4188392f6a30e2b5017f
Author: Josh Fischer <jo...@joshfischer.io>
AuthorDate: Mon Dec 9 11:23:45 2019 -0600

    Joshfischer/finalize-ci-website (#3418)
    
    * adding asf.yaml
    
    * removing .htaccess during the CI site build
    
    * adding apache header
    
    * commenting out publish block for last test
    
    * ready to deploy for prod
    
    * removing incorrect rm command
    
    * clear all contents of content directory before republish
    
    * attemtpting to correct cp command
    
    * update asf yaml for prod
    
    * remove htaccess file
    
    * clean up. remove htaccess file
---
 .asf.yaml                                | 24 ++++++++++++++++++++++++
 .htaccess                                |  1 -
 website2/website/scripts/publish_site.sh |  7 ++++++-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..fef1a18
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,24 @@
+#  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.
+
+staging:
+  profile: ~
+  whoami: asf-site
+
+publish:
+  whoami: asf-site
+  hostname: http://heronstreaming.io
diff --git a/.htaccess b/.htaccess
deleted file mode 100644
index bdcbac5..0000000
--- a/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-Redirect	/index.html	https://heron.incubator.apache.org
diff --git a/website2/website/scripts/publish_site.sh b/website2/website/scripts/publish_site.sh
index b313aba..b3bb8ea 100755
--- a/website2/website/scripts/publish_site.sh
+++ b/website2/website/scripts/publish_site.sh
@@ -38,9 +38,14 @@ HERON_SITE_TMP=/tmp/heron-site
   git config user.email "dev@heron.incubator.apache.org"
   git checkout asf-site
 
+
+   # clean content directory
+  rm -rf $HERON_SITE_TMP/content/
+  mkdir $HERON_SITE_TMP/content
+
   # copy the generated dir
   cp -r $WORK_DIR/* $HERON_SITE_TMP/content
-  cp -a ${ROOT_DIR}/.htaccess ${ROOT_DIR}/content
+
   # push all of the results to asf-site branch
   git add -A .
   git diff-index --quiet HEAD || (git commit -m "git-site-role commit from $ME" && git push -q origin HEAD:asf-site)