* add onElse
to map
functions and allow a return value.
#120
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Install | |
run: | | |
flutter config --enable-web | |
cd packages/openapi_generator_flutter && flutter pub get | |
- name: Build | |
run: cd packages/openapi_generator_flutter && flutter build web --base-href /openapi_dart/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./packages/openapi_generator_flutter/build/web | |
allow_empty_commit: true | |