Skip to content

Commit 5dab464

Browse files
authored
Fix venv not sourced when pushing docs (#500)
1 parent d3dbaf0 commit 5dab464

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/build_main_documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ jobs:
187187
- name: Run pre-command
188188
shell: bash
189189
run: |
190+
source .venv/bin/activate
190191
if [ ! -z "${{ inputs.pre_command }}" ]
191192
then
192193
bash -c "${{ inputs.pre_command }}"
@@ -235,6 +236,7 @@ jobs:
235236
236237
- name: Push to repositories
237238
run: |
239+
source .venv/bin/activate
238240
cd build_dir
239241
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
240242
cd ..

.github/workflows/build_pr_documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ jobs:
171171
- name: Run pre-command
172172
shell: bash
173173
run: |
174+
source .venv/bin/activate
174175
if [ ! -z "${{ inputs.pre_command }}" ]
175176
then
176177
bash -c "${{ inputs.pre_command }}"

0 commit comments

Comments
 (0)