Skip to content

⬆️ Upgrade actions/checkout action to v7 (#45) #40

⬆️ Upgrade actions/checkout action to v7 (#45)

⬆️ Upgrade actions/checkout action to v7 (#45) #40

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
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@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
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@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0