Skip to content

Commit

Permalink
Add android build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
kphanipavan authored Sep 29, 2023
1 parent 3f8f5d5 commit cfb1050
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Build & Deploy to GitHub Pages
name: Build Apps & Deploy to GitHub Pages

on:
push:
branches:
- master
paths:
- "lib/**"
- "android/**"
- "web/**"
- "pubspec.yaml"
- ".github/workflows/**"
Expand All @@ -15,6 +16,7 @@ on:
- master
paths:
- "lib/**"
- "android/**"
- "web/**"
- "pubspec.yaml"
- ".github/workflows/**"
Expand Down Expand Up @@ -65,20 +67,21 @@ jobs:
# - name: Test project
# run: flutter test

- name: Build release project
- name: Build Web Release
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer canvaskit

# - name: Create Release
# uses: marvinpinto/[email protected]
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "latest"
# prerelease: false
# draft: false
# title: "Bi-Weekly Release"
# files: |
# ./scripts/out.txt
# ./scripts/out.json
- name: Build Android Release
run: flutter build apk --split-per-abi --release --no-track-widget-creation --analyze-size --target-platform "android-arm64

- name: Create Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
draft: false
title: "Git Build"
files: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk

- name: Upload production-ready build files
uses: actions/[email protected]
Expand Down

0 comments on commit cfb1050

Please sign in to comment.