-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring back Docs, from where it was abandoned :( IABW (#2)
* write GHA to generate docs on gh-pages * check * fixes https://github.com/pyrogram/pyrogram/tree/0e68bf35b70901e8d24bebbacf31a1609b18971f
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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* 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 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Pyrogram | ||
|
||
on: [push, pull_request] | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
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