Build DOCs #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build DOCs | |
on: | |
workflow_dispatch: {} | |
jobs: | |
build: | |
name: build-doc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
make | |
rm -rf .github compiler Pyrogram* pyrogram* tests .gitignore COPYING* | |
rm -f MANIFEST* Makefile NOTICE README.md | |
rm -f pyproject.toml | |
mv docs/build/html/* . | |
rm -rf docs venv | |
touch .nojekyll | |
git checkout --orphan gh-pages | |
git config user.email "[email protected]" | |
git config user.name "GitHub Action <Dan>" | |
git add . -A | |
git commit -m "DocGen: Update documentation" | |
git push origin gh-pages --force |