Skip to content

Commit 782a852

Browse files
author
Diptorup Deb
committed
Try to publish docs.
1 parent 4775d55 commit 782a852

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/generate-docs.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,23 @@ jobs:
6262
mkdir -p build && cd build && rm -rf *
6363
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
6464
tar xf doxyrest-2.1.2-linux-amd64.tar.xz
65-
cmake .. -DDPCTL_ENABLE_DOXYREST=ON -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
65+
cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON -DDPCTL_ENABLE_DOXYREST=ON -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
6666
make Sphinx
67-
- name: Deploy docs
68-
uses: peaceiris/actions-gh-pages@v3
69-
with:
70-
github_token: ${{ secrets.GITHUB_TOKEN }}
71-
publish_dir: docs/generated_docs/docs
67+
mv docs/generated_docs/docs ~/docs
68+
git clean -dfx
69+
git checkout gh-pages
70+
cd master
71+
git rm -rf *
72+
mv ~/docs/* .
73+
git add .
74+
git commit -m "Latest docs."
75+
git push
76+
77+
78+
79+
80+
# - name: Deploy docs
81+
# uses: peaceiris/actions-gh-pages@v3
82+
# with:
83+
# github_token: ${{ secrets.GITHUB_TOKEN }}
84+
# publish_dir: docs/generated_docs/docs

0 commit comments

Comments
 (0)