Skip to content

Commit

Permalink
[CI] Fix some command errors in doc build.
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Apr 16, 2024
1 parent 6cacf45 commit 6f29d2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mkdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,24 @@ jobs:
with:
python-version: '3.10'
- run: |
cd docs/
pip install -r requirements.txt
make html
cd docs/ && pip install -r requirements.txt
make html && cd ..
- name: Commit doc changes
run: |
git clone https://github.com/aicorein/melobot.git --branch gh-pages --single-branch gh-pages
mkdir tmp-files && cd gh-pages
mv CNAME .nojekyll README.md ../tmp-files
rm -rf * && cd ..
cp -r docs/build/html/* gh-pages/
cp tmp-files/* gh-pages/
mv CNAME .nojekyll README.md .git ../tmp-files
rm -rf * && rm .* && cd ..
cp -r docs/build/html/* gh-pages
cp docs/build/html/.* gh-pages
mv tmp-files/* tmp-files/.* gh-pages && rmdir tmp-files
cd gh-pages
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update doc by Github Action" -a || true
cd ..
- name: Push changes
uses: ad-m/github-push-action@master
Expand Down
1 change: 1 addition & 0 deletions gh-pages
Submodule gh-pages added at c6f681

0 comments on commit 6f29d2f

Please sign in to comment.