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

Commit

Permalink
[Website] Fix website publish (#20573)
Browse files Browse the repository at this point in the history
* fix website publish

* update

* remove .asf.yaml from version/master

* force include .asf.yaml

* include .htaccess

* add .asf.yaml check in CI
  • Loading branch information
barry-jin authored Sep 14, 2021
1 parent e359bcd commit 98e6b36
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,12 @@ build_docs() {
mkdir -p $python_doc_folder && tar -xzf python-artifacts.tgz --directory $python_doc_folder
mkdir -p $api_folder/cpp/docs/api && tar -xzf c-artifacts.tgz --directory $api_folder/cpp/docs/api

# check if .htaccess file exists
# check if .asf.yaml file exists
if [ ! -f "html/.asf.yaml" ]; then
echo "html/.asf.yaml file does not exist. Exiting 1"
exit 1
fi
# check if .htaccess file exists
if [ ! -f "html/.htaccess" ]; then
echo "html/.htaccess file does not exist. Exiting 1"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions docs/static_site/src/.asf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
publish:
whoami: asf-site
6 changes: 6 additions & 0 deletions docs/static_site/src/_config_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ markdown: kramdown
plugins:
- jekyll-feed
- jekyll-seo-tag

# Force include .asf.yaml
include:
- .asf.yaml
- .htaccess

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
Expand Down

0 comments on commit 98e6b36

Please sign in to comment.