mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
31 lines
676 B
YAML
31 lines
676 B
YAML
name: Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- docs/**
|
|
pull_request:
|
|
paths:
|
|
- docs/**
|
|
jobs:
|
|
pages:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
if: github.repository == 'php/php-src'
|
|
steps:
|
|
- name: git checkout
|
|
uses: actions/checkout@v6
|
|
- name: Install dependencies
|
|
run: pip install -r docs/requirements.txt
|
|
- name: Check formatting
|
|
run: make -C docs check-formatting
|
|
- name: Publish
|
|
if: github.event_name == 'push'
|
|
uses: sphinx-notes/pages@v3
|
|
with:
|
|
checkout: false
|
|
documentation_path: docs/source
|