github-pages.yml 764 B

1234567891011121314151617181920212223242526272829
  1. name: GithHub Pages
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. github-pages:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v2
  12. - name: Setup PHP, with composer and extensions
  13. uses: shivammathur/setup-php@v2
  14. with:
  15. php-version: 7.4
  16. coverage: none # remove xdebug
  17. - name: Build API documentation
  18. run: |
  19. curl -LO https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar
  20. php phpDocumentor.phar --directory src/ --target docs/api
  21. - name: Deploy to GithHub Pages
  22. uses: peaceiris/actions-gh-pages@v3
  23. with:
  24. github_token: ${{ secrets.GITHUB_TOKEN }}
  25. publish_dir: ./docs/api