Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Joshfischer/finalize-ci-website #3418

Merged
merged 11 commits into from
Dec 9, 2019
24 changes: 24 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion .htaccess

This file was deleted.

7 changes: 6 additions & 1 deletion website2/website/scripts/publish_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down