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:
Kumar Gala 2020-02-11 21:52:41 -06:00 committed by Kumar Gala
commit ae380c55c8

View file

@ -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: |