Skip to content

Commit

Permalink
ci: Add doc build workflow
Browse files Browse the repository at this point in the history
Run template yaml.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
  • Loading branch information
gastmaier committed Nov 28, 2024
1 parent 5e99388 commit e4232c9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: workflow_call
jobs:
doc-build-latest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"

- uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Install pip packages
run: |
pip install $(tail --lines=+2 docs/requirements.txt) --upgrade
pip install weasyprint sphinxcontrib.wavedrom
pip install dist/adi_doctools-*.tar.gz
- name: Build custom doc
working-directory: /tmp
run: |
adoc doc-build -d my_pdf --builder pdf --https
adoc doc-build -d my_pdf --builder pdf --https
- name: Store the generated pdf
uses: actions/upload-artifact@v4
with:
name: custom-pdf
path: /tmp/my_pdf/_build/output.pdf
4 changes: 4 additions & 0 deletions .github/workflows/top-level.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
uses: ./.github/workflows/tests.yml
needs: [build-package]
secrets: inherit
doc-build:
uses: ./.github/workflows/doc-build.yml
needs: [build-package]
secrets: inherit
deploy:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/deploy.yml
Expand Down

0 comments on commit e4232c9

Please sign in to comment.