Skip to content

📌 Pin actions/checkout digest to 93cb6ef (#31) #26

📌 Pin actions/checkout digest to 93cb6ef (#31)

📌 Pin actions/checkout digest to 93cb6ef (#31) #26

Workflow file for this run

name: Generate and Deploy Docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get files
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2
with:
channel: stable
cache: true
- name: Install dependencies
run: flutter pub get
- name: Generate documentation
run: dart doc .
- name: Upload pages artifacts
id: deployment
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
with:
path: ./doc/api
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4