Skip to content

Solve warnings and remove deprecated code (#729) #16

Solve warnings and remove deprecated code (#729)

Solve warnings and remove deprecated code (#729) #16

Workflow file for this run

name: Documentation
on:
workflow_dispatch:
push:
branches:
- v3
jobs:
apigen:
runs-on: ubuntu-22.04
name: ApiGen
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 10
path: source
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
fetch-depth: 10
ref: gh-pages
path: gh-pages
- name: Validate composer.json
run: |
cd source
composer validate
- name: Cache composer files
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('source/composer.json') }}
- name: Install dependencies using composer
run: |
cd source
composer install --prefer-dist --no-interaction ${{ matrix.composer-extra }}
- name: Clean old ApiGen
run: |
rm -rf gh-pages/api
mkdir -p gh-pages/api
- name: ApiGen
run: docker run --rm --interactive --user $(id -u):$(id -g) --volume "$PWD:$PWD" --workdir "$PWD/source" apigen/apigen:edge src --output ../gh-pages/api
- name: Commit & Push updated file
if: always()
uses: EndBug/add-and-commit@v9
with:
default_author: github_actor
message: 'Regenerated ApiGen documentation.'
cwd: gh-pages