Skip to content

Commit

Permalink
Update action in docs branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rayosborn committed Oct 23, 2023
1 parent 052c935 commit d7bdfa4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: "Sphinx: Render docs"
name: "Sphinx: Render Documentation"

on: workflow_dispatch
on:
workflow_dispatch:
push:
branches:
- docs
pull_request:
branches:
- docs

jobs:
build:
Expand All @@ -18,7 +25,7 @@ jobs:
path: docs/build/html/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs'}}
if: ${{github.ref == 'refs/heads/docs'}}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html

0 comments on commit d7bdfa4

Please sign in to comment.