forked from goxiaoy/flutter_survey_js
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 885 Bytes
/
pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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