Skip to content

Commit

Permalink
Add docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbnl committed Oct 9, 2023
1 parent e2452b6 commit d622b88
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build docs

on:
- workflow_dispatch

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install code-to-pdf
shell: bash
run: pip install .

- name: Install dev dependencies
shell: bash
run: pip install -r requirements-dev.txt

- name: Build documentation
shell: bash
run: sphinx-build docs/ docs/_build/

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/_build/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit d622b88

Please sign in to comment.