doc-builder -> doc-build (#15134)
* Updated script * Commit everything * Ready for review! * Update .github/workflows/build_documentation.yml Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Julien Chaumond <julien@huggingface.co>
This commit is contained in:
16
.github/workflows/build_documentation.yml
vendored
16
.github/workflows/build_documentation.yml
vendored
@@ -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:
|
|||||||
|
|
||||||
- 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:
|
|||||||
|
|
||||||
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user