forked from openfoodfacts/smooth-app
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.46 KB
/
Copy pathdartdoc.yml
File metadata and controls
42 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#permissions:
# contents: read
# pages: write
name: GitHub Pages Deploy Action
on:
push:
branches:
- "develop"
jobs:
deploy-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/smooth_app
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Flutter
uses: actions/cache@v5
with:
path: ${{ runner.tool_cache }}/flutter
key: flutter-2.5.0-stable
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 2.5.0
- name: Run Dartdoc
run: pub global activate dartdoc && dartdoc
- name: Install mkdocs and mkdocs-material
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mdx_truly_sane_lists pymdown-extensions mkdocs-awesome-pages-plugin
- name: Build documentation using mkdocs
run: mkdocs build
- name: Deploy smooth_app documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
BRANCH: gh-pages
FOLDER: packages/smooth_app/gh_pages/
#Deploy scanner documentation to Github Pages
#Deploy API documentation to Github Pages