Skip to content

[melobot] Update to 2.6.2 to bypass a version error due to pdm #24

[melobot] Update to 2.6.2 to bypass a version error due to pdm

[melobot] Update to 2.6.2 to bypass a version error due to pdm #24

Workflow file for this run

name: makedoc
on:
push:
branches:
main
pull_request:
branches:
main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build the doc
run: |
cd docs/ && pip install -r requirements.txt
make html && cd ..
- name: Refresh changes and commit
run: |
git clone https://github.com/Meloland/melobot.git --branch gh-pages --single-branch gh-pages
mkdir tmp-files && cd gh-pages
mv CNAME .nojekyll README.md .git ../tmp-files
rm -rf * && rm .buildinfo && cd ..
cp -r docs/build/html/* gh-pages
cp docs/build/html/.buildinfo gh-pages
mv tmp-files/* tmp-files/.git tmp-files/.nojekyll gh-pages
rmdir tmp-files
cd gh-pages
git config --local user.email "[email protected]"
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
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}