Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Document how to use with GitHub Actions#3695

Open
fulldecent wants to merge 1 commit intophpDocumentor:masterfrom
fulldecent:patch-2
Open

Document how to use with GitHub Actions#3695
fulldecent wants to merge 1 commit intophpDocumentor:masterfrom
fulldecent:patch-2

Conversation

@fulldecent
Copy link
Contributor

Fixes #2242

Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this part of the docs. It's really nice that you are adding fixes for the docs. It would be nice if you could check the github action, I think this helps to make the workflow easier.

Comment on lines +74 to +75
- name: Build with phpDocumentor
run: php -d xdebug.mode=off ${{ github.workspace }}/tools/phpDocumentor run -vv -d source --target docs --cache-folder phpdoc-cache --template default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpDocumentor provides a github action from this repository: https://github.com/phpDocumentor/phpDocumentor/blob/master/action.yml

      - name: "Build"
        uses: "phpDocumentor/phpDocumentor@master"
        with:
          target: "build/docs"

I think this is a better way of running since we can pack every dependency we need in a docker image. So people do not have to care about installing php correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to use phpDocumentor as github action

2 participants