There was an error while loading. Please reload this page.
1 parent d33d918 commit c52dc63Copy full SHA for c52dc63
.github/workflows/dart.yml
@@ -0,0 +1,36 @@
1
+name: deploy
2
+
3
+on:
4
+ release:
5
+ types: [ published, edited ]
6
+ push:
7
+ branches:
8
+ - master
9
10
+jobs:
11
+ build:
12
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - uses: actions/checkout@v1
17
+ - uses: actions/setup-java@v1
18
+ with:
19
+ java-version: '12.x'
20
21
+ - name: Setup Flutter
22
+ uses: subosito/flutter-action@v1
23
24
+ channel: 'stable'
25
+ - run: flutter config --enable-web
26
+ - run: flutter pub get
27
28
+ - name: Build Web Project
29
+ run: flutter build web
30
31
+ - name: Deploy web To GH-Page
32
+ uses: peaceiris/actions-gh-pages@v2.5.0
33
+ env:
34
+ PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
+ PUBLISH_BRANCH: gh-pages
36
+ PUBLISH_DIR: ./build/web/
0 commit comments