Merge branch 'develop' into dartdoc-+-mkdocs #794
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | ||
- name: Setup Flutter | ||
uses: actions/cache@v4 | ||
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 | ||
- name: Build documentation using mkdocs | ||
run: mkdocs build | ||
- name: Deploy smooth_app documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ | ||
- name: Deploy scanner documentation to Github Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: packages/smooth_app/docs/ |