docs: make flutter example works #235
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: Deploy latest docs | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:stable | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Build docs | |
run: | | |
cd retrofit | |
dart doc | |
mv doc/api ../public | |
- name: GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v3.1.0 | |
with: | |
build_dir: public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |