Skip to content

Commit

Permalink
feat: add ci/cd config
Browse files Browse the repository at this point in the history
  • Loading branch information
codeyzx committed May 9, 2024
1 parent 0d81e2d commit 36dff08
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 🔨🧪 Build & Test

permissions: write-all

on:
pull_request:
branches:
- "main"
tags:
- "v*.*.*"

jobs:
deploy:
name: 🔨 Deploy
uses: ./.github/workflows/deploy.yml
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🔨 Build App

on:
workflow_call:

jobs:
build:
name: Build Artifacts and Release
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
- name: ⚙️ Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: ⚙️ Install dependencies for all packages
run: |
flutter pub get
- name: 🔨 Build APK
run: |
flutter build apk --split-per-abi --release --obfuscate --split-debug-info=./symbols/
- name: 🔨 Build APPBUNDLE
run: |
flutter build appbundle --release --obfuscate --split-debug-info=./symbols/
- name: ⚙️ Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk,build/app/outputs/bundle/release/*.aab"
tag: v1.0.${{ github.run_number }}

0 comments on commit 36dff08

Please sign in to comment.