"docs/vscode:/vscode.git/clone" did not exist on "3f0f75e497e7900558fddac7ed238df4ef8f3786"
Unverified Commit 6950ccec authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

doc-builder -> doc-build (#15134)



* Updated script

* Commit everything

* Ready for review!

* Update .github/workflows/build_documentation.yml
Co-authored-by: default avatarJulien Chaumond <julien@huggingface.co>
Co-authored-by: default avatarJulien Chaumond <julien@huggingface.co>
parent 9a94bb8e
...@@ -17,8 +17,8 @@ jobs: ...@@ -17,8 +17,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
repository: 'huggingface/doc-builder' repository: 'huggingface/doc-build'
path: doc-builder path: doc-build
token: ${{ secrets.HUGGINGFACE_PUSH }} token: ${{ secrets.HUGGINGFACE_PUSH }}
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -64,10 +64,10 @@ jobs: ...@@ -64,10 +64,10 @@ jobs:
- name: Setup git - name: Setup git
run: | run: |
git config --global user.name "Hugging Face" git config --global user.name "Hugging Face Doc Builder"
git config --global user.email transformers@huggingface.co git config --global user.email docs@huggingface.co
cd doc-builder cd doc-build
git pull origin main git pull origin main
cd .. cd ..
...@@ -77,13 +77,13 @@ jobs: ...@@ -77,13 +77,13 @@ jobs:
- name: Make documentation - name: Make documentation
run: | run: |
doc-builder build transformers transformers/docs/source --build_dir doc-builder/build --notebook_dir notebooks/transformers_doc --clean doc-builder build transformers transformers/docs/source --build_dir doc-build --notebook_dir notebooks/transformers_doc --clean
- name: Push to repositories - name: Push to repositories
run: | run: |
cd doc-builder cd doc-build
if [[ `git status --porcelain` ]]; then if [[ `git status --porcelain` ]]; then
git add build git add .
git commit -m "Updated with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}" git commit -m "Updated with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}"
git push origin main git push origin main
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment