Update main.yml #2
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
name: CI/CD | |
on: | |
push: | |
branches: | |
- main # Trigger CI/CD on push to main branch | |
jobs: | |
build: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable # use stable channel | |
- name: Go into app directory | |
run: cd budget_app | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Create .env file | |
run: echo "OPEN_AI_API_KEY=${{ secrets.OPEN_AI_API_KEY }}" > .env | |
- name: Build app | |
run: flutter build ipa # Build your app | |
# Additional steps to test, and deploy your app could be added here. |