Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 authored Oct 12, 2023
1 parent ebe0311 commit 7147385
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Flutter CI/CD
on:
push:
branches:
- main # Trigger the action on push to main branch
- main

jobs:
build:
name: Build App
runs-on: ubuntu-latest
runs-on: macOS-latest

steps:
- name: Checkout Repository
Expand All @@ -17,18 +17,22 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: 'stable'

- name: Install Dependencies
run: flutter pub get
working-directory: budget_app # Navigate into budget_app directory
working-directory: budget_app

- name: Clean
run: flutter clean
working-directory: budget_app

- name: Build IPA
run: flutter build ipa
working-directory: budget_app # Navigate into budget_app directory
working-directory: budget_app

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: myApp
path: budget_app/build/ios/ipa/myApp.ipa # Adjusted path
path: budget_app/build/ios/ipa/myApp.ipa

0 comments on commit 7147385

Please sign in to comment.