2022-03-22 23:33:29 +03:00
|
|
|
name: Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
documentation:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-01 00:11:59 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-22 23:33:29 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Setup PHP
|
2023-02-01 00:11:59 +03:00
|
|
|
uses: shivammathur/setup-php@v2
|
2022-03-22 23:33:29 +03:00
|
|
|
with:
|
|
|
|
php-version: 8.0
|
|
|
|
- name: Install dependencies
|
|
|
|
run: composer global require daux/daux.io
|
|
|
|
- name: Generate documentation
|
|
|
|
run: daux generate
|
|
|
|
- name: Deploy same repository 🚀
|
2023-02-01 00:11:59 +03:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2022-03-22 23:33:29 +03:00
|
|
|
with:
|
|
|
|
folder: "static"
|
2023-02-01 00:11:59 +03:00
|
|
|
branch: gh-pages
|