Merge pull request #4790 from Mynacol/youtube-helper #144
This file contains hidden or 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: | |
| paths: | |
| - 'docs/**' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| paths: | |
| - .github/workflows/** | |
| - 'docs/**' | |
| permissions: | |
| contents: write | |
| jobs: | |
| documentation: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| 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 🚀 | |
| if: ${{ github.event_name != 'pull_request' }} | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: "static" | |
| branch: gh-pages |