Skip to content

Commit cc0bc6e

Browse files
committed
trying to fix docs
1 parent fdbf863 commit cc0bc6e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build_docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ jobs:
1919
# ===============================
2020
- name: Commit documentation changes
2121
run: |
22-
sudo cd docs/_build/html
23-
git init
22+
git clone https://github.com/C-Achard/cellseg-annotator-test.git --branch gh-pages --single-branch gh-pages
23+
cp -r docs/_build/html/* gh-pages/
24+
cd gh-pages
2425
touch .nojekyll
25-
git add -A
2626
git config --local user.email "[email protected]"
2727
git config --local user.name "GitHub Action"
28+
git add .
2829
git commit -m "Update documentation" -a || true
2930
# The above command will fail if no changes were present, so we ignore
3031
# that.
3132
- name: Push changes
3233
uses: ad-m/github-push-action@master
3334
with:
3435
branch: gh-pages
36+
directory: gh-pages
3537
force : true
3638
github_token: ${{ secrets.GITHUB_TOKEN }}
3739
# ===============================

0 commit comments

Comments
 (0)