File tree Expand file tree Collapse file tree 2 files changed +59
-2
lines changed
Expand file tree Collapse file tree 2 files changed +59
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+ on :
3+ push :
4+ branches :
5+ - main
6+ workflow_dispatch :
7+ workflow_call :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout 🛎️
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Flutter
20+ uses : subosito/flutter-action@v2
21+ with :
22+ channel : stable
23+ - run : flutter doctor -v
24+
25+ - name : Install Melos
26+ run : dart pub global activate melos
27+
28+ - name : Melos Bootstrap
29+ run : melos bootstrap
30+
31+ - name : Generate Codes
32+ run : |
33+ melos generate_packages --no-select
34+ melos generate
35+
36+ - name : Setup chrome driver
37+ uses : nanasess/setup-chromedriver@v2
38+
39+ - name : Run chrome driver
40+ run : |
41+ chromedriver --port=4444 &
42+
43+ - name : Run Integration Tests
44+ run : melos ci_integration_test --no-select
45+
46+ - name : Create .env.prod file
47+ run : echo "${{ secrets.DOT_ENV_FILE }}" > .env.prod
48+
49+ - name : Update GITHUB_RUN_NUMBER to version
50+ run : melos update_version
51+
52+ - name : Build
53+ run : melos build_prod
54+
55+ - name : Deploy 🚀
56+ uses : JamesIves/github-pages-deploy-action@v4
57+ with :
58+ branch : gh-pages
59+ folder : " ./build/web"
Original file line number Diff line number Diff line change 11name : Deploy to Netlify
22
33on :
4- push :
5- branches : [main]
64 workflow_dispatch :
75
86jobs :
You can’t perform that action at this time.
0 commit comments