Skip to content

Commit

Permalink
add in workflow to publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonsteiner committed Jan 18, 2025
1 parent 0bc5828 commit 3a0223f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sphinx build

on: # yamllint disable-line rule:truthy
workflow_call:

jobs:
sphinx-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./doc
steps:
- uses: actions/checkout@v4

- name: Build HTML
run: make

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: ./html/

- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html

0 comments on commit 3a0223f

Please sign in to comment.