Move docs build to separate job

develop
lethosor 2020-10-07 00:28:51 -04:00
parent 9ba677a38b
commit 73d2a4c9e3
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 24 additions and 9 deletions

@ -43,14 +43,6 @@ jobs:
- name: Download DF - name: Download DF
run: | run: |
sh travis/download-df.sh sh travis/download-df.sh
- name: Build docs
run: |
sphinx-build -qW -j3 . docs/html
- name: Upload docs
uses: actions/upload-artifact@v1
with:
name: docs
path: docs/html
- name: Build DFHack - name: Build DFHack
run: | run: |
cmake \ cmake \
@ -77,12 +69,35 @@ jobs:
name: test-artifacts name: test-artifacts
path: artifacts path: artifacts
- name: Clean up DF folder - name: Clean up DF folder
# to prevent DFHack-generated files from ending up in the cache # prevent DFHack-generated files from ending up in the cache
# (download-df.sh also removes them, this is just to save cache space) # (download-df.sh also removes them, this is just to save cache space)
if: success() || failure() if: success() || failure()
run: | run: |
rm -rf "$DF_FOLDER" rm -rf "$DF_FOLDER"
docs:
runs-on: ubuntu-18.04
steps:
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install dependencies
run: |
pip install sphinx
- name: Clone DFHack
uses: actions/checkout@v1
with:
submodules: true
- name: Build docs
run: |
sphinx-build -qW -j3 . docs/html
- name: Upload docs
uses: actions/upload-artifact@v1
with:
name: docs
path: docs/html
lint: lint:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps: