Skip to content

Commit

Permalink
add a build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Oct 10, 2024
1 parent 10615d2 commit 9a8527d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and deploy docs

on: push

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create .env file
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/dotenv@v2.3.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'
- run: poetry install
- name: build docs
run: poetry run sphinx-build ./docs
- name: list _build
run: ls ./docs/_build
1 change: 1 addition & 0 deletions prebuild.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /bin/sh

(cd docs && make clean)
poetry run sphinx-apidoc -feTM --remove-old -odocs/api aim

0 comments on commit 9a8527d

Please sign in to comment.