Skip to content

Commit

Permalink
Create sphinx.yml
Browse files Browse the repository at this point in the history
Add the _build/html directory to compile .rst files into HTML
  • Loading branch information
anjodasilva committed May 2, 2024
1 parent 7824f18 commit 0c026af
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sphinx Build and Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build HTML
run: |
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html

0 comments on commit 0c026af

Please sign in to comment.