File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717jobs :
1818
19- # ─────────────────────────────────────────────
20- # JOB 1 — Build & Deploy Flutter Web → gh-pages
21- # ─────────────────────────────────────────────
22- deploy-web :
23- name : Deploy Web to GitHub Pages
24- runs-on : ubuntu-latest
25-
26- steps :
27- - name : Checkout repository
28- uses : actions/checkout@v4
29-
30- - name : Setup Flutter
31- uses : subosito/flutter-action@v2
32- with :
33- flutter-version : ${{ env.FLUTTER_VERSION }}
34- channel : master
35- cache : true
36-
37- - name : Install dependencies
38- run : flutter pub get
39-
40- - name : Build Flutter Web
41- run : |
42- flutter build web \
43- --release \
44- --base-href "/${{ github.event.repository.name }}/"
45-
46- - name : Deploy to GitHub Pages (gh-pages branch)
47- uses : peaceiris/actions-gh-pages@v4
48- with :
49- github_token : ${{ secrets.GITHUB_TOKEN }}
50- publish_dir : build/web
51- publish_branch : gh-pages
52- # Optional: keep old deployments or force-push
53- force_orphan : false
54- # Optional: add a .nojekyll file so assets load correctly
55- enable_jekyll : false
56- commit_message : " deploy: web build for ${{ github.ref_name }}"
57-
58- # ─────────────────────────────────────────────
59- # JOB 2 — Build Android APK with ABI splits
60- # ─────────────────────────────────────────────
6119 build-android :
6220 name : Build & Release Android APK
6321 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments