2022-03-19 18:27:11 +03:00
|
|
|
name: "Documentation"
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
name: "Documentation"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: "Checkout Instaloader Repository"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # needed for building docs
|
|
|
|
- name: "Setup Python"
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: "Install Dependencies"
|
|
|
|
run: |
|
2023-03-30 19:35:42 +03:00
|
|
|
python -m pip install pipenv==2023.2.4
|
|
|
|
pipenv --python `python --version | grep -Eo '3\.[0-9]+'` sync --dev
|
2022-03-19 18:27:11 +03:00
|
|
|
- name: "Build Documentation"
|
2023-03-30 19:35:42 +03:00
|
|
|
run: pipenv --python `python --version | grep -Eo '3\.[0-9]+'` run make -C docs html SPHINXOPTS="-W -n"
|
2022-03-19 18:27:11 +03:00
|
|
|
- name: "Deploy Documentation"
|
|
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.5
|
|
|
|
with:
|
|
|
|
branch: master
|
|
|
|
repository-name: instaloader/instaloader.github.io
|
|
|
|
folder: docs/_build/html
|
2022-03-19 19:02:24 +03:00
|
|
|
token: ${{ secrets.PAGES_DEPLOYMENT_TOKEN }}
|