Skip to content

Commit 95c791f

Browse files
committed
trying to fix docs
1 parent 6be214c commit 95c791f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build_docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,22 @@ jobs:
1919
# ===============================
2020
- name: Commit documentation changes
2121
run: |
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
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
25+
cd docs/_build/html
26+
git init
2527
touch .nojekyll
28+
git add -A
2629
git config --local user.email "[email protected]"
2730
git config --local user.name "GitHub Action"
28-
git add .
2931
git commit -m "Update documentation" -a || true
3032
# The above command will fail if no changes were present, so we ignore
3133
# that.
3234
- name: Push changes
3335
uses: ad-m/github-push-action@master
3436
with:
3537
branch: gh-pages
36-
directory: gh-pages
38+
force : true
3739
github_token: ${{ secrets.GITHUB_TOKEN }}
3840
# ===============================

0 commit comments

Comments
 (0)