Skip to content

Commit c52dc63

Browse files
authored
Create dart.yml
1 parent d33d918 commit c52dc63

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/dart.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)