Skip to content

Commit

Permalink
Workflow to publish docs on pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Jul 9, 2024
1 parent 780c18e commit 3839f74
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- main
tags:
- '*'
pull_request:
workflow_dispatch:

jobs:
build_sphinx_docs:
name: Build Sphinx Docs
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/build_sphinx_docs@main
with:
check-links: false

deploy_sphinx_docs:
name: Deploy Sphinx Docs
needs: build_sphinx_docs
permissions:
contents: write
if: (github.event_name == 'push' || github.event_name == 'tag') && github.ref_name == 'main'
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs@v2
with:
secret_input: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/build

# MkDocs documentation
/site/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3839f74

Please sign in to comment.