Skip to content

Commit

Permalink
DOC: Build on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Aug 8, 2023
1 parent 262fa54 commit c2e37f5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Documentation

on:
workflow_dispatch:
push:
branches: ["main", "dev", "qdoc", "dev-*"]
pull_request:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
repository: has2k1/plotnine-examples
path: qdoc/plotnine-examples

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: "1.4.268"

- name: Install Package
run: |
python -m pip install ".[doc]"
python -m pip install -r requirements/doc.txt
- name: Build docs
run: |
make render
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ doc:
$(BROWSER) doc/_build/html/index.html

qdoc:
$(MAKE) -C qdoc docs-build
$(MAKE) -C qdoc render

qdoc-preview:
$(MAKE) -C qdoc preview
Expand Down

0 comments on commit c2e37f5

Please sign in to comment.