Skip to content

[melobot] Remove unused empty string detection #29

[melobot] Remove unused empty string detection

[melobot] Remove unused empty string detection #29

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 "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
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}