Update UI extensions for local preview (#183) #94
This file contains 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: Publish documentation to GitHub Pages | |
on: | |
push: | |
branches: [master] | |
paths: | |
- 'docs/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Generate connector settings documentation | |
run: ./gradlew docs:antoraConfig | |
- name: Generate agent settings documentation | |
run: ./gradlew agent:run --args="../docs/modules/ROOT/pages" | |
- name: Generate Antora configuration in antora.yml | |
run: ./gradlew docs:run --args="modules/ROOT/pages" | |
- name: Run Antora | |
uses: kameshsampath/[email protected] | |
with: | |
antora_playbook: site-ghpages.yaml | |
site_sources_path: docs | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/build/site |