doctum does not yet support array shapes #52
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: documentation | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Prepare documentation with doctum | |
run: ./scripts/prepare_doctum_docs_on_github.sh | |
- name: build doctum docs | |
uses: sudo-bot/action-doctum@v5 | |
env: | |
# the GITHUB_BASE_REF is only set in pull requests but not in pushes to the master branch, so this should work as expected in doctum-config.php | |
_DOCTUM_BRANCH: ${{ github.GITHUB_BASE_REF }} | |
_DOCTUM_TEMPLATE_DIR: ./template/ | |
with: | |
config-file: ./scripts/doctum-config.php | |
# parse, render or update | |
method: "update" | |
# (optional) defaults to '--output-format=github --no-ansi --no-progress -v' | |
cli-args: "--output-format=github --no-ansi --no-progress -v" | |
- name: Deploy | |
if: github.ref == 'refs/head/master' | |
uses: reggionick/s3-deploy@v3 | |
with: | |
folder: doctum-output/build/ | |
bucket: rokka-io | |
bucket-region: eu-central-1 | |
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | |
invalidation: /client-php-api/ | |
delete-removed: false |