Skip to content

Build DOCs

Build DOCs #49

Workflow file for this run

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