Skip to content

Commit

Permalink
Merge pull request #1158 from sigmavirus24/ci/auto-upload-docs
Browse files Browse the repository at this point in the history
Add docs upload workflow
  • Loading branch information
sigmavirus24 authored Dec 15, 2023
2 parents 94541f8 + 06af862 commit 03d4bc5
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Check documentation

"on":
schedule:
- cron: "0 1 * * *" # everyday at 1am
push:
paths:
- "**.rst"
- "docs/**"
pull_request:
paths:
- "**.rst"
- "docs/**"

jobs:
docs:
name: Build documentation & check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Upgrade pip
run: |
pip install -U pip
pip --version
- name: Install Tox
run: |
pip install tox
tox --version
- name: Build documentation
run: tox
env:
TOXENV: docs

- name: Upload documentation
uses: actions/upload-artifact@v3
with:
name: docs
path: docs/build
12 changes: 12 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
sphinx:
configuration: docs/source/conf.py
formats: all
python:
install:
- requirements: docs/source/requirements.txt
- path: .

0 comments on commit 03d4bc5

Please sign in to comment.