1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-07-14 23:00:06 +02:00
instaloader/.github/workflows/documentation.yml

33 lines
1.1 KiB
YAML
Raw Normal View History

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