Skip to content

Commit

Permalink
switch again to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmann1123 committed Jul 24, 2024
1 parent c5721fe commit aa9a489
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/sphinx-notes-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
name: Deploy Sphinx documentation to Pages

on:
push:
branches: [master] # branch to trigger deployment

jobs:
pages:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
python -m pip install -U sphinx
python -m pip install sphinx-rtd-theme mathjax sphinxcontrib-napoleon numpydoc ipython
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
documentation_path: './docs/source'
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}

# name: Deploy Sphinx documentation to Pages

# on:
# push:
# branches: [master] # branch to trigger deployment
# workflow_dispatch: # This line adds the manual trigger option

# jobs:
# pages:
# runs-on: ubuntu-20.04
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# permissions:
# pages: write
# id-token: write
# steps:
# - name: Install dependencies
# run: |
# python -m pip install -U sphinx
# python -m pip install sphinx-rtd-theme mathjax sphinxcontrib-napoleon numpydoc ipython

# - id: deployment
# uses: sphinx-notes/pages@v3
# uses: sphinx-notes/pages@v3
# with:
# publish: false
# documentation_path: './docs/source'
# - uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ${{ steps.deployment.outputs.artifact }}

name: Deploy Sphinx documentation to Pages

on:
push:
branches: [master] # branch to trigger deployment
workflow_dispatch: # This line adds the manual trigger option

jobs:
pages:
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Install dependencies
run: |
python -m pip install -U sphinx
python -m pip install sphinx-rtd-theme mathjax sphinxcontrib-napoleon numpydoc ipython
- id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: './docs/source'

0 comments on commit aa9a489

Please sign in to comment.