-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f8f5d5
commit cfb1050
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**" | ||
|
@@ -15,6 +16,7 @@ on: | |
- master | ||
paths: | ||
- "lib/**" | ||
- "android/**" | ||
- "web/**" | ||
- "pubspec.yaml" | ||
- ".github/workflows/**" | ||
|
@@ -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] | ||
|