33 lines
805 B
YAML
33 lines
805 B
YAML
name: "Docs / Build PR"
|
|
# For more information,
|
|
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows
|
|
|
|
env:
|
|
FLAG: ${{ github.repository == 'scylladb/scylla-enterprise' && 'enterprise' || 'opensource' }}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- enterprise
|
|
paths:
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Set up env
|
|
run: make -C docs FLAG="${{ env.FLAG }}" setupenv
|
|
- name: Build docs
|
|
run: make -C docs FLAG="${{ env.FLAG }}" test
|