Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
ositoMalvado committed Oct 16, 2024
1 parent 8f9a75d commit a04c191
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .github/workflows/ipa-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: IPA Build

on:
# Runs on push to any of the below branches
push:
branches:
- master
- main
# Runs on pull request events that target one of the below branches
pull_request:
branches:
- master
- main

# Allows you to run this workflow manually from the Actions tab of the repository
workflow_dispatch:

env:
# https://flet.dev/docs/publish#versioning
BUILD_NUMBER: 1
BUILD_VERSION: 1.0.0
PYTHON_VERSION: 3.12.6
FLUTTER_VERSION: 3.24.0

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup Flutter ${{ env.FLUTTER_VERSION }}
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Flet Build IPA
run: |
flutter config --no-analytics
flet build ipa --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION --include-packages flet_audio
- name: Upload IPA Artifact
uses: actions/[email protected] # https://github.com/marketplace/actions/upload-a-build-artifact
with:
name: ipa-build-artifact # the name of the artifact
path: build/ipa # location of Flet build output
if-no-files-found: error # Fail the action with an error message if no files are found
overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
venv/
# i want to ignore the .github folder
.github/
# .github/

0 comments on commit a04c191

Please sign in to comment.