[RSDK-4265] Sensor widget tests (#81) #32
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: Generate docs | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "lib/**" | |
- "doc/**" | |
- "README.md" | |
- "dartdoc_options.yaml" | |
branches: [main] | |
jobs: | |
generate-docs: | |
if: github.repository_owner == 'viamrobotics' | |
runs-on: [self-hosted, x64] | |
container: | |
image: ghcr.io/cirruslabs/flutter:3.10.6 | |
steps: | |
- name: Checkout Push/Workflow Dispatch | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
run: flutter pub get | |
- name: Generate docs | |
run: dart doc | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: doc/api | |
publish_branch: docs-gh_pages | |
cname: flutter.viam.dev | |
- name: Zip artifacts | |
run: zip html-docs.zip ./doc/api -r | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: html-docs | |
path: html-docs.zip |