evennia/.github/workflows/github_action_build_docs.yml
2020-09-19 16:31:07 +02:00

47 lines
1 KiB
YAML

# This github-Evennia workflow will build the docs.
name: documentation
on:
push:
branches: [ master, develop ]
paths:
- 'docs/source/**'
pull_request:
branches: [ master, develop ]
paths:
- 'docs/source/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
TESTING_DB: ['sqlite3']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package dependencies
run: |
python -m pip install --upgrade pip
cd docs/
make install
- name: Quick-test docs (no autodocs)
run: |
cd docs/
make quick
- name: Deploy docs (only from master/develop branch)
if: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'}}
run: |
cd docs/
echo "Would deploy here!"