feat: Add enable-phpcs input for conditional PHPCS execution #34
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: | |
| branches: | |
| - documentation | |
| - main | |
| pull_request: | |
| branches: | |
| - documentation | |
| jobs: | |
| deploy: | |
| name: Deploy Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| # https://github.com/marketplace/actions/checkout | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Verify directory structure | |
| - name: List directory structure | |
| run: | | |
| ls -la | |
| ls -la website/ | |
| # Generate SVG files using PlantUML | |
| - name: plantuml | |
| id: plantuml | |
| uses: grassedge/generate-plantuml-action@v1.5 | |
| with: | |
| message: "Render PlantUML files" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # https://github.com/marketplace/actions/docusaurus-builddeploy-action | |
| - name: Deploy Docusaurus | |
| id: deploy | |
| uses: redkubes/docusaurus-deploy-action@v1.2 | |
| timeout-minutes: 3 | |
| with: | |
| source-folder: website | |
| git-user: ${{ github.actor }} | |
| git-password: ${{ secrets.GITHUB_TOKEN }} | |
| deployment-branch: gh-pages | |
| # https://github.com/marketplace/actions/create-an-issue | |
| - name: Create issue on failure | |
| if: failure() | |
| uses: JasonEtco/create-an-issue@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| filename: .github/DOCUMENTATION_ISSUE_TEMPLATE.md |