File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : App Distribute CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ release :
8+ types : [published]
9+
10+ workflow_dispatch :
11+ inputs :
12+ flavor :
13+ type : choice
14+ description : Build flavor
15+ options :
16+ - beta
17+ - prod
18+ build_web :
19+ type : boolean
20+ description : Web
21+ default : true
22+
23+ env :
24+ FLUTTER_VERSION : " 3.35.2"
25+ FLUTTER_CHANNEL : stable
26+
27+ concurrency :
28+ group : ${{ github.workflow }}-${{ github.ref }}
29+ cancel-in-progress : true
30+
31+ jobs :
32+ build_and_deploy_web :
33+ name : Build and Deploy Dogfooding Web
34+ runs-on : ubuntu-latest
35+ timeout-minutes : 10
36+ if : ${{ github.event_name == 'push' || github.event_name == 'release' || inputs.build_web == true }}
37+ steps :
38+ - name : Checkout code
39+ uses : actions/checkout@v3
40+
41+ - name : config git
42+ run : |
43+ git config --global user.email "$(git log --format='%ae' HEAD^!)"
44+ git config --global user.name "$(git log --format='%an' HEAD^!)"
45+ git fetch origin gh-pages:gh-pages
46+
47+ - name : Setup Flutter
48+ uses : subosito/flutter-action@v2
49+ with :
50+ cache : true
51+ channel : ${{ env.FLUTTER_CHANNEL }}
52+ flutter-version : ${{ env.FLUTTER_VERSION }}
53+
54+ - name : Build and Deploy
55+ uses : bluefireteam/flutter-gh-pages@v9
56+ with :
57+ baseHref : /stream-feeds-flutter/
58+ workingDir : sample_app
You can’t perform that action at this time.
0 commit comments