Skip to content

Commit

Permalink
Issue apache#5500 - Copy the site HTMLs into asf-site branch
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Mar 21, 2023
1 parent e1c2a2d commit 5ead3de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ github:
rebase: false
features:
issues: true

publish:
whoami: asf-site
subdir: datafusion
15 changes: 9 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
- issue-5500-asf.yaml-docs
paths:
- .github/workflows/docs.yaml
- docs/**
Expand All @@ -16,12 +17,11 @@ jobs:
- name: Checkout docs sources
uses: actions/checkout@v3

- name: Checkout docs target branch
- name: Checkout asf-site branch
uses: actions/checkout@v3
with:
repository: apache/arrow-site
ref: asf-site
path: docs-target
path: asf-site

- name: Setup Python
uses: actions/setup-python@v4
Expand All @@ -45,9 +45,12 @@ jobs:
- name: Copy & push the generated HTML
run: |
set -x
cd docs-target/
rm -rf datafusion/*
cp -rT ../docs/build/html/ datafusion/
cd asf-site/
# delete anything but: 1) '.'; 2) '..'; 3) .git/
find ./ | grep -vE "^./$|^../$|^./.git" | xargs rm -rf
cp ../.asf.yaml .
cp -rT ../docs/build/html/ .
git add .
git status --porcelain
if [ "$(git status --porcelain)" != "" ]; then
git config user.name "github-actions[bot]"
Expand Down

0 comments on commit 5ead3de

Please sign in to comment.