Skip to content

Commit

Permalink
Create dartdoc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
teolemon authored Oct 18, 2024
1 parent 32ed1c6 commit 3d83720
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dartdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: GitHub Pages Deploy Action
on:
push:
branches:
- "develop"
#- "dartdoc-smoothie"
jobs:
deploy-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/smooth_app
steps:

- name: Chekout code
uses: actions/checkout@v3

- name: Setup Flutter
uses: actions/cache@v3
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: Deploy API documentation to Github Pages
uses: JamesIves/[email protected]
with:
BRANCH: gh-pages
FOLDER: packages/smooth_app/doc/api/

0 comments on commit 3d83720

Please sign in to comment.