docs: comprehensive accuracy audit and CI fix (#5489) #6
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: Docs Deploy (Beta) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - 'feature/docs/**' | |
| - 'build-logic/convention/src/main/kotlin/org/meshtastic/buildlogic/DocsTasks.kt' | |
| - '.github/workflows/docs-deploy.yml' | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: docs-deploy | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-24.04 | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-read-only: false | |
| - name: Generate Docs Bundle | |
| run: ./gradlew generateDocsBundle -Pdocs.channel=beta -Pci=true | |
| - name: Validate Docs Bundle | |
| run: ./gradlew validateDocsBundle -Pdocs.channel=beta -Pci=true | |
| - name: Generate Site Artifact | |
| run: ./gradlew publishDocsSite -Pdocs.channel=beta -Pci=true | |
| - name: Upload Pages Artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: build/_site/ | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 | |