Skip to content

Commit

Permalink
apacheGH-36839: [CI][Docs] Update test-ubuntu-default-docs to use Git…
Browse files Browse the repository at this point in the history
…Hub actions instead of Azure (apache#36840)

### Rationale for this change

Currently `test-ubuntu-default-docs` has been failing on Azure for the 13.0.0 RC0 and we had to use GitHub actions to generate the documentation.
Using the same base action for both preview-docs, test and packaging will improve maintainability.

### What changes are included in this PR?

Move `test-ubuntu-default-docs` to use GH actions instead of Azure.

### Are these changes tested?

Yes, with archery related tasks.

### Are there any user-facing changes?

No
* Closes: apache#36839

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
raulcd authored and R-JunmingChen committed Aug 20, 2023
1 parent c1e3626 commit d9cfdcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
12 changes: 10 additions & 2 deletions dev/tasks/docs/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

jobs:
test:
name: Docs Preview
name: Build Docs
runs-on: ubuntu-latest
{{ macros.github_set_env(env) }}
steps:
Expand All @@ -44,7 +44,8 @@ jobs:
ref: {{ default_branch|default("main") }}
path: crossbow
fetch-depth: 1
- name: Prepare docs
{% if publish %}
- name: Prepare Docs Preview
run: |
# build files are created by the docker user
sudo chown -R ${USER}: build
Expand All @@ -61,3 +62,10 @@ jobs:
run: |
aws s3 cp build/docs/ $BUCKET/pr_docs/{{ pr_number }}/ --recursive
echo ":open_book: You can find the preview here: http://crossbow.voltrondata.com/pr_docs/{{ pr_number }}" >> $GITHUB_STEP_SUMMARY
{% endif %}
- name: Prepare Docs artifacts
run: |
cd build
sudo chown -R ${USER}: .
tar cvzf docs.tar.gz docs
{{ macros.github_upload_releases("build/docs.tar.gz")|indent }}
13 changes: 5 additions & 8 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1435,16 +1435,13 @@ tasks:
{% endfor %}

test-ubuntu-default-docs:
ci: azure
template: docker-tests/azure.linux.yml
ci: github
template: docs/github.linux.yml
params:
artifacts: "build/docs.tar.gz"
pr_number: Unset
flags: "-v $PWD/build/:/build/"
image: ubuntu-docs
post_script: |
cd build
sudo chown -R ${USER}: .
tar cvzf docs.tar.gz docs
publish: false
artifacts:
- docs.tar.gz

Expand Down Expand Up @@ -1565,6 +1562,6 @@ tasks:
template: docs/github.linux.yml
params:
pr_number: Unset
artifacts: "build/docs.tar.gz"
flags: "-v $PWD/build/:/build/"
image: ubuntu-docs
publish: true

0 comments on commit d9cfdcc

Please sign in to comment.