Skip to content

Commit 46521f5

Browse files
committed
trying to fix docs
1 parent cc0bc6e commit 46521f5

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

.github/workflows/build_docs.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,8 @@ jobs:
1616
pre-build-command: "pip install -r dev.requirements.txt"
1717
docs-folder: "docs/"
1818
# Publish built docs to gh-pages branch.
19-
# ===============================
20-
- name: Commit documentation changes
21-
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
25-
touch .nojekyll
26-
git config --local user.email "[email protected]"
27-
git config --local user.name "GitHub Action"
28-
git add .
29-
git commit -m "Update documentation" -a || true
30-
# The above command will fail if no changes were present, so we ignore
31-
# that.
32-
- name: Push changes
33-
uses: ad-m/github-push-action@master
34-
with:
35-
branch: gh-pages
36-
directory: gh-pages
37-
force : true
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
# ===============================
19+
- name: GitHub Pages action
20+
uses: peaceiris/[email protected]
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./_build/html

0 commit comments

Comments
 (0)