Skip to content

Commit

Permalink
chg: dev: (re)enable spinx builds in github ci, push to ghpages
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold committed Aug 18, 2024
1 parent d6fbc83 commit d33753f
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,40 +104,40 @@ jobs:
files: |
packages/timew*
#docs:
#name: Release docs
#needs: [create_release]
#runs-on: ubuntu-20.04

#steps:
#- uses: actions/checkout@v4
#with:
#fetch-depth: 0

#- uses: actions/setup-python@v5
#with:
#python-version: '3.9'

#- name: Add python requirements
#run: |
#python -m pip install --upgrade pip
#pip install tox

#- name: Build docs
#run: |
#tox -e ldocs,docs

#- uses: actions/upload-artifact@v4
#with:
#name: ApiDocsHTML
#path: "docs/_build/html/"

#- name: set nojekyll for github
#run: |
#sudo touch docs/_build/html/.nojekyll

#- name: Deploy docs to gh-pages
#if: ${{ github.event_name == 'push' }}
#uses: JamesIves/github-pages-deploy-action@v4
#with:
#folder: docs/_build/html/
docs:
name: Release docs
needs: [create_release]
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Add python requirements
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build docs
run: |
tox -e ldocs,docs
- uses: actions/upload-artifact@v4
with:
name: ApiDocsHTML
path: "docs/build/html/"

- name: set nojekyll for github
run: |
sudo touch docs/build/html/.nojekyll
- name: Deploy docs to gh-pages
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html/
47 changes: 47 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs
on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Add python requirements
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build docs
run: |
tox -e ldocs,docs
- uses: actions/upload-artifact@v4
with:
name: ApiDocsHTML
path: "docs/build/html/"

- name: set nojekyll for github
run: |
sudo touch docs/build/html/.nojekyll
- name: Deploy docs to gh-pages
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html/
SINGLE_COMMIT: true

0 comments on commit d33753f

Please sign in to comment.