Merge branch 'dev' of https://github.com/winkaeter/mediatekformation into dev
This commit is contained in:
commit
18cbadb533
1 changed files with 37 additions and 0 deletions
37
.github/workflows/main.yml
vendored
Normal file
37
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Generate Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
phpdoc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '8.2'
|
||||||
|
tools: phpdoc # Installe automatiquement phpDocumentor
|
||||||
|
|
||||||
|
- name: Run phpDocumentor
|
||||||
|
run: phpdoc -d ./src -t ./docs/api
|
||||||
|
# -d : dossier source
|
||||||
|
# -t : dossier de destination pour la doc générée
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./docs/api
|
||||||
|
|
||||||
|
- name: Upload Documentation
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: php-doc-api
|
||||||
|
path: ./docs/api # Le dossier où phpDoc a généré l'HTML
|
||||||
Loading…
Reference in a new issue