Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 2401ddd

Browse files
authored
Update doc-builder push command to use env variable
1 parent 88e8d21 commit 2401ddd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/doc-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ jobs:
5252
5353
- name: Make documentation
5454
shell: bash
55+
env:
56+
HF_DOC_BUILD_PUSH: ${{ secrets.HF_DOC_BUILD_PUSH }}
5557
run: |
5658
doc-builder notebook-to-mdx examples/ --output_dir docs/source/howto/ --open_notebook_prefix https://colab.research.google.com/github/huggingface/optimum-tpu/blob/main
5759
python docs/scripts/auto-generate-examples.py
5860
doc-builder build optimum.tpu docs/source/ --repo_name optimum-tpu --build_dir tpu-doc-build/ --version ${{ env.VERSION }} --version_tag_suffix "" --html --clean
5961
cd tpu-doc-build/
6062
mv optimum.tpu optimum-tpu
61-
doc-builder push optimum-tpu --doc_build_repo_id "hf-doc-build/doc-build" --token "${{ secrets.HF_DOC_BUILD_PUSH }}" --commit_msg "Updated with commit $COMMIT_SHA See: https://github.com/huggingface/optimum-tpu/commit/$COMMIT_SHA" --n_retries 5
63+
doc-builder push optimum-tpu --doc_build_repo_id "hf-doc-build/doc-build" --token "$HF_DOC_BUILD_PUSH" --commit_msg "Updated with commit $COMMIT_SHA See: https://github.com/huggingface/optimum-tpu/commit/$COMMIT_SHA" --n_retries 5

0 commit comments

Comments
 (0)