mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
47 lines
1 KiB
YAML
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!"
|