Skip to content

Commit

Permalink
Merge branch 'add-rtd-integration' of https://github.com/kayjan/bigtree
Browse files Browse the repository at this point in the history
… into add-rtd-integration
  • Loading branch information
kayjan committed Oct 17, 2023
2 parents a7a02fa + d63334d commit c6096de
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ on:
- completed

jobs:
docs:
setup:
runs-on: ubuntu-latest
steps:
- name: Check if upstream workflow failed
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
run: exit 1
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
Expand All @@ -22,11 +25,22 @@ jobs:
- name: Sphinx build
run: |
sphinx-build docs/source docs/build
- name: Deploy
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/
force_orphan: true
- name: Deploy to RTD
- uses: actions/upload-artifact@v2
with:
name: docs-${{ github.sha }}
path: docs/build/html
- name: Trigger RTDs build
uses: dfm/rtds-action@v1
with:
webhook_url: ${{ secrets.RTD_URL }}
webhook_token: ${{ secrets.RTD_TOKEN }}
commit_ref: ${{ github.ref }}

0 comments on commit c6096de

Please sign in to comment.