Add android build and release
This commit is contained in:
committed by
GitHub
parent
3f8f5d5f89
commit
cfb105068a
29
.github/workflows/gh-pages.yml
vendored
29
.github/workflows/gh-pages.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build & Deploy to GitHub Pages
|
name: Build Apps & Deploy to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,6 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- "lib/**"
|
- "lib/**"
|
||||||
|
- "android/**"
|
||||||
- "web/**"
|
- "web/**"
|
||||||
- "pubspec.yaml"
|
- "pubspec.yaml"
|
||||||
- ".github/workflows/**"
|
- ".github/workflows/**"
|
||||||
@@ -15,6 +16,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- "lib/**"
|
- "lib/**"
|
||||||
|
- "android/**"
|
||||||
- "web/**"
|
- "web/**"
|
||||||
- "pubspec.yaml"
|
- "pubspec.yaml"
|
||||||
- ".github/workflows/**"
|
- ".github/workflows/**"
|
||||||
@@ -65,20 +67,21 @@ jobs:
|
|||||||
# - name: Test project
|
# - name: Test project
|
||||||
# run: flutter test
|
# run: flutter test
|
||||||
|
|
||||||
- name: Build release project
|
- name: Build Web Release
|
||||||
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer canvaskit
|
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer canvaskit
|
||||||
|
|
||||||
# - name: Create Release
|
- name: Build Android Release
|
||||||
# uses: marvinpinto/action-automatic-releases@v1.2.1
|
run: flutter build apk --split-per-abi --release --no-track-widget-creation --analyze-size --target-platform "android-arm64
|
||||||
# with:
|
|
||||||
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
- name: Create Release
|
||||||
# automatic_release_tag: "latest"
|
uses: marvinpinto/action-automatic-releases@v1.2.1
|
||||||
# prerelease: false
|
with:
|
||||||
# draft: false
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
# title: "Bi-Weekly Release"
|
automatic_release_tag: "latest"
|
||||||
# files: |
|
prerelease: true
|
||||||
# ./scripts/out.txt
|
draft: false
|
||||||
# ./scripts/out.json
|
title: "Git Build"
|
||||||
|
files: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
|
||||||
|
|
||||||
- name: Upload production-ready build files
|
- name: Upload production-ready build files
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
|||||||
Reference in New Issue
Block a user