Add PHP 8.3 to workflows. (#356) #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Api Documentation | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-api: | |
name: Build api | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout api repository | |
uses: actions/checkout@v3 | |
with: | |
repository: alphazframework/api | |
path: api | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.3 | |
extensions: mbstring, dom, json, libxml, xml, xmlwriter | |
coverage: none | |
- name: Download phpDocumentor | |
run: wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar | |
- name: Build api documentation | |
run: php phpDocumentor.phar -d ./src . -t ./api | |
- name: Deploy api documentation site | |
uses: peaceiris/actions-gh-pages@v2 | |
env: | |
PERSONAL_TOKEN: ${{ secrets.AUTH_TOKEN }} | |
EXTERNAL_REPOSITORY: alphazframework/api | |
PUBLISH_BRANCH: master | |
PUBLISH_DIR: ./api |