Skip to content

Preparing for release, 2.3.0. (#184) #18

Preparing for release, 2.3.0. (#184)

Preparing for release, 2.3.0. (#184) #18

Workflow file for this run

name: Update docs content
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/**/*.php'
jobs:
docs-update:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use PHP 8.2
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: composer install
- name: Generate
run: composer run apigen
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1