Skip to content

⬆️ Upgrade actions/deploy-pages action to v5 (#42) #37

⬆️ Upgrade actions/deploy-pages action to v5 (#42)

⬆️ Upgrade actions/deploy-pages action to v5 (#42) #37

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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@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@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0