Skip to content

Commit

Permalink
update documentation workflow to test documentation building on pull …
Browse files Browse the repository at this point in the history
…requests.
  • Loading branch information
kbonney committed Oct 10, 2024
1 parent b3dff5b commit ad3009a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_deploy_pages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This is a basic workflow to help you get started with Actions

name: docs

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
build:
name: Build the documentation with Sphinx
Expand Down Expand Up @@ -36,6 +37,7 @@ jobs:
deploy:
name: Deploy documentation to GitHub Pages
needs: build
if: github.event_name == 'push'
permissions:
contents: read
pages: write # to deploy to Pages
Expand Down

0 comments on commit ad3009a

Please sign in to comment.