Skip to content

Commit

Permalink
ci: Add custom-doc workflow
Browse files Browse the repository at this point in the history
Build custom doc from the template yaml.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Dec 1, 2024
1 parent 5b0ff88 commit c6b38ea
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/custom-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: workflow_call
jobs:
custom-doc:
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 custom-doc -d my_pdf --builder pdf --https
adoc custom-doc -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
custom-doc:
uses: ./.github/workflows/custom-doc.yml
needs: [build-package]
secrets: inherit
deploy:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/deploy.yml
Expand Down

0 comments on commit c6b38ea

Please sign in to comment.