diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index ff928f1eb22..4d9e90f83f7 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -5,6 +5,7 @@ on: branches: - master - doc-builder* + - v*-release jobs: build_and_package: @@ -46,7 +47,9 @@ jobs: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev pip install git+https://github.com/huggingface/doc-builder - pip install git+https://github.com/huggingface/transformers#egg=transformers[dev] + cd transformers + pip install .[dev] + cd .. export TORCH_VERSION=$(python -c "from torch import version; print(version.__version__.split('+')[0])") pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_VERSION}+cpu.html