-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-12958: [CI][Developer] Build + host the docs for PR branches (#…
…13913) Authored-by: Jacob Wujciak-Jens <[email protected]> Signed-off-by: Rok <[email protected]>
- Loading branch information
1 parent
4af3df0
commit 28cf3f9
Showing
11 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# 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. | ||
|
||
{% import 'macros.jinja' as macros with context %} | ||
{% set pr_number = pr_number|replace("Unset", arrow.branch) %} | ||
{{ macros.github_header() }} | ||
|
||
jobs: | ||
test: | ||
name: Docs Preview | ||
runs-on: ubuntu-latest | ||
{{ macros.github_set_env(env) }} | ||
steps: | ||
{{ macros.github_checkout_arrow(fetch_depth=fetch_depth|default(1))|indent }} | ||
{{ macros.github_install_archery()|indent }} | ||
|
||
- name: Execute Docker Build | ||
shell: bash | ||
env: | ||
ARROW_JAVA_SKIP_GIT_PLUGIN: true | ||
run: | | ||
archery docker run \ | ||
-e SETUPTOOLS_SCM_PRETEND_VERSION="{{ arrow.no_rc_version }}" \ | ||
{{ flags|default("") }} \ | ||
{{ image }} \ | ||
{{ command|default("") }} | ||
- name: Checkout Crossbow | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: {{ default_branch|default("master") }} | ||
path: crossbow | ||
fetch-depth: 1 | ||
- name: Move docs | ||
run: | | ||
# build files are created by the docker user | ||
sudo chown -R ${USER}: build | ||
PR_DIR=crossbow/docs/pr_docs/{{ pr_number }} | ||
mkdir -p $PR_DIR | ||
rsync -a --delete build/docs/ $PR_DIR | ||
- name: Push changes | ||
run: | | ||
cd crossbow | ||
git config --local user.name "Github Actions" | ||
git config --local user.email "[email protected]" | ||
URL_PATH=pr_docs/{{ pr_number }} | ||
URL=https://crossbow.voltrondata.com/$URL_PATH | ||
git add docs/$URL_PATH | ||
git commit -m "Add docs preview for PR {{ pr_number }}" | ||
git push | ||
echo ":open_book: You can find the preview here: $URL" >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters