Skip to content

Commit

Permalink
ci(fix): sphinx--deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushiyant committed Jan 30, 2024
1 parent 1210fde commit ea8cb76
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/sphinx.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
- id: deployment
uses: sphinx-notes/pages@v3
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 comments on commit ea8cb76

Please sign in to comment.