Skip to content

Commit

Permalink
workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-tesch committed Mar 10, 2024
1 parent f0c2fe1 commit 5f82294
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
name: "Sphinx: Render docs"
name: Deploy Sphinx documentation to Pages

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

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 comments on commit 5f82294

Please sign in to comment.