Pages #17
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: Pages | |
on: | |
workflow_run: | |
workflows: ["Analyze & Test"] | |
types: [completed] | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish Github Pages | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Activate melos | |
run: | | |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | |
dart pub global activate melos 3.1.0 | |
- name: Bootstrap melos | |
run: melos bs | |
- run: | | |
cd example | |
flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./example/build/web |