Blame | Last modification | View Log | Download
name: Deployon:push:branches:- masterpull_request:jobs:deploy:runs-on: ubuntu-lateststeps:- name: Checkoutuses: actions/checkout@v2### MkDocs- name: Setup Pythonuses: actions/setup-python@v2with:python-version: 3.x- name: Install Python Dependenciesrun: pip install mkdocs-material autolink-references-mkdocs-plugin- name: Build documentationrun: mkdocs build --site-dir public### PHPUnit- name: Setup PHPuses: shivammathur/setup-php@v2with:php-version: 7.2extensions: dom, xmlcoverage: xdebug- name: Create directory public/coveragerun: mkdir ./public/coverage- name: Install PHP Dependenciesrun: composer install --ansi --prefer-dist --no-interaction --no-progress- name: Build Coverage Reportrun: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage### PHPDoc- name: Create directory public/docsrun: mkdir ./public/docs- name: Install PhpDocumentor## Support PHP 7.2run: wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar && chmod +x phpDocumentor.phar- name: Build Documentationrun: ./phpDocumentor.phar run -d ./src -t ./public/docs### Deploy- name: Deployuses: peaceiris/actions-gh-pages@v3if: github.ref == 'refs/heads/master'with:github_token: ${{ secrets.GITHUB_TOKEN }}publish_dir: ./public