Skip to content

Commit 2f8115f

Browse files
authored
fix(ci): sync to bucket before zip-push to preserve extracted files (#782)
1 parent 8624007 commit 2f8115f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/build_main_documentation.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,6 @@ jobs:
234234
235235
cd ..
236236
237-
- name: Push to dataset (legacy, kept for rollback safety)
238-
run: |
239-
source .venv/bin/activate
240-
cd build_dir
241-
doc-builder push ${{ env.package_name }} --doc_build_repo_id "hf-doc-build/doc-build" --token "${{ secrets.hf_token }}" --commit_msg "Updated with commit ${{ inputs.commit_sha }} See: https://github.com/${{ inputs.repo_owner }}/${{ inputs.package }}/commit/${{ inputs.commit_sha }}" --n_retries 5 --upload_version_yml
242-
cd ..
243-
244237
- name: Sync to bucket
245238
env:
246239
HF_TOKEN: ${{ secrets.hf_token }}
@@ -251,6 +244,15 @@ jobs:
251244
hf sync "./$PACKAGE_NAME" "hf://buckets/hf-doc-build/doc/$PACKAGE_NAME"
252245
cd ..
253246
247+
- name: Push to dataset (legacy, kept for rollback safety)
248+
run: |
249+
source .venv/bin/activate
250+
cd build_dir
251+
doc-builder push ${{ env.package_name }} --doc_build_repo_id "hf-doc-build/doc-build" --token "${{ secrets.hf_token }}" --commit_msg "Updated with commit ${{ inputs.commit_sha }} See: https://github.com/${{ inputs.repo_owner }}/${{ inputs.package }}/commit/${{ inputs.commit_sha }}" --n_retries 5 --upload_version_yml
252+
cd ..
253+
254+
- name: Commit notebooks
255+
run: |
254256
if [ -d "notebook_dir" ]
255257
then
256258
cd notebooks

0 commit comments

Comments
 (0)