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

Commit dcd1b92

Browse files
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
1 parent de8b554 commit dcd1b92

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.asf.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
staging:
19+
profile: ~
20+
whoami: asf-site
21+
22+
publish:
23+
whoami: asf-site
24+
hostname: http://heronstreaming.io

.htaccess

-1
This file was deleted.

website2/website/scripts/publish_site.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ HERON_SITE_TMP=/tmp/heron-site
3838
git config user.email "[email protected]"
3939
git checkout asf-site
4040

41+
42+
# clean content directory
43+
rm -rf $HERON_SITE_TMP/content/
44+
mkdir $HERON_SITE_TMP/content
45+
4146
# copy the generated dir
4247
cp -r $WORK_DIR/* $HERON_SITE_TMP/content
43-
cp -a ${ROOT_DIR}/.htaccess ${ROOT_DIR}/content
48+
4449
# push all of the results to asf-site branch
4550
git add -A .
4651
git diff-index --quiet HEAD || (git commit -m "git-site-role commit from $ME" && git push -q origin HEAD:asf-site)

0 commit comments

Comments
 (0)