Update flet-build-exp.yml #3
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: Build Flet Windows | |
on: | |
push: | |
branches: | |
- flet-build # או כל ענף אחר שאתה רוצה להשתמש בו לבנייה | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Flutter SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24' # או גרסה עדכנית יותר | |
channel: 'stable' # או 'beta' או 'dev' אם אתה רוצה | |
- name: Verify Flutter Installation | |
run: | | |
flutter --version # הדפס את גרסת Flutter כדי לוודא שהיא מותקנת | |
echo "PATH is: $env:PATH" # הדפס את ה-PATH כדי לוודא ש-flutter נוסף | |
- name: Create and activate virtual environment | |
run: | | |
python -m venv .venv | |
.venv\Scripts\activate | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install flet --upgrade # עדכון לגרסה העדכנית ביותר | |
pip install cython | |
- name: Build Windows executable | |
run: | | |
flet build windows . | |
- name: Upload Windows executable as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: my_flet_app_windows | |
path: build/windows/*.zip |