Skip to content

⬆️ Upgrade actions/deploy-pages action to v4.0.5 (#35) #30

⬆️ Upgrade actions/deploy-pages action to v4.0.5 (#35)

⬆️ Upgrade actions/deploy-pages action to v4.0.5 (#35) #30

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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.0.5