check GHA build, again #2
Workflow file for this run
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, push] | |
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 tests .gitignore COPYING* | |
rm -f MANIFEST* Makefile NOTICE README.md *requirements.txt | |
rm -f setup.py tox.ini | |
mv docs/build/html/* . | |
rm -rf docs | |
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 documentatio" | |
git push origin gh-pages --force | |