Skip to content

Commit

Permalink
Fix venv not sourced when pushing docs (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Apr 30, 2024
1 parent d3dbaf0 commit 5dab464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_main_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ jobs:
- name: Run pre-command
shell: bash
run: |
source .venv/bin/activate
if [ ! -z "${{ inputs.pre_command }}" ]
then
bash -c "${{ inputs.pre_command }}"
Expand Down Expand Up @@ -235,6 +236,7 @@ jobs:
- name: Push to repositories
run: |
source .venv/bin/activate
cd build_dir
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
cd ..
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
- name: Run pre-command
shell: bash
run: |
source .venv/bin/activate
if [ ! -z "${{ inputs.pre_command }}" ]
then
bash -c "${{ inputs.pre_command }}"
Expand Down

0 comments on commit 5dab464

Please sign in to comment.