Skip to content

Commit

Permalink
trying with approved action
Browse files Browse the repository at this point in the history
  • Loading branch information
jbousquin committed Jul 7, 2023
1 parent 6f7a09e commit d34c193
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Docs
on: [push, pull_request, workflow_dispatch]
on: [push, pull_request]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: write
jobs:
Expand All @@ -14,11 +18,10 @@ jobs:
- name: Sphinx build
run: |
sphinx-build doc _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Sphinx to gh-pages Action
uses: uibcdf/[email protected]
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
dir_docs: docs
sphinxapiopts: '--separate -o . ../'
sphinxapiexclude: '../*setup* ../*.ipynb'
sphinxopts: ''

0 comments on commit d34c193

Please sign in to comment.