-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from Progi1984/issue634_mkdocs
#634 : Documentation (Mkdocs & Github Actions)
- Loading branch information
Showing
47 changed files
with
1,434 additions
and
1,911 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
### MkDocs | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: Install Python Dependencies | ||
run: pip install mkdocs-material | ||
- name: Build documentation | ||
run: mkdocs build --site-dir public | ||
### PHPUnit | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | ||
coverage: xdebug | ||
- name: Create directory public/coverage | ||
run: mkdir ./public/coverage | ||
- name: Create directory public/coverage | ||
run: mkdir ./public/docs | ||
- name: Install PHP Dependencies | ||
run: composer install --ansi --prefer-dist --no-interaction --no-progress | ||
- name: Install PhpDocumentor | ||
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar | ||
- name: Build Coverage Report | ||
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage | ||
- name: Build Documentation | ||
run: ./phpDocumentor.phar -d ./src -t ./public/docs | ||
|
||
### Deploy | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/develop' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public |
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.