github: Update doc build action
Make a few cleanups to the doc build action: 1. Only do action for pull requests - action is meant to test PRs 2. Remove west update / cache of modules as we dont need them for docs Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
026f7fc97e
commit
ae380c55c8
1 changed files with 1 additions and 16 deletions
17
.github/workflows/doc-build.yml
vendored
17
.github/workflows/doc-build.yml
vendored
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
name: Documentation GitHub Workflow
|
name: Documentation GitHub Workflow
|
||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -34,24 +34,9 @@ jobs:
|
||||||
'sphinx>=1.7.5' sphinx_rtd_theme sphinx-tabs \
|
'sphinx>=1.7.5' sphinx_rtd_theme sphinx-tabs \
|
||||||
sphinxcontrib-svg2pdfconverter 'west>=0.6.2'
|
sphinxcontrib-svg2pdfconverter 'west>=0.6.2'
|
||||||
|
|
||||||
- name: cache-zephyr-modules
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ../modules
|
|
||||||
key: ${{ runner.os }}-zephyr-modules-${{ hashFiles('west.yml') }}
|
|
||||||
|
|
||||||
- name: cache-zephyr-tools
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ../tools
|
|
||||||
key: ${{ runner.os }}-zephyr-tools-${{ hashFiles('west.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-doc-zephyr-tools
|
|
||||||
|
|
||||||
- name: west setup
|
- name: west setup
|
||||||
run: |
|
run: |
|
||||||
west init -l . || true
|
west init -l . || true
|
||||||
west update
|
|
||||||
|
|
||||||
- name: build-docs
|
- name: build-docs
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue