Skip to content

Commit

Permalink
👷 add docs CI
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Apr 29, 2024
1 parent 710f8e5 commit 0a813f9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docs

on:
workflow_dispatch:
branches:
- main
workflow_call:

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@v4
- id: install
name: Install dependencies
run: dart pub get
- name: Build documentation
run: dart doc .
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/api/
force_orphan: true

0 comments on commit 0a813f9

Please sign in to comment.