mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-31 01:58:13 -04:00
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
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@v4
|
|
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
|
|
|