Merge pull request #123 from hyperwallet/feature/DTPAYETWO-759-HWPari… #6
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: Update Documentation | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
documentation: | |
runs-on: ubuntu-latest | |
name: Documentation | |
strategy: | |
matrix: | |
operating-system: [ 'ubuntu-latest' ] | |
php-versions: [ '8.1' ] | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Install API doc generator tool | |
run: composer create-project --no-dev apigen/apigen:^7.0@alpha tools/apigen | |
- name: Generate Documentation | |
run: tools/apigen/bin/apigen src --output docs | |
- name: Push | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "Documentation updated" |