עדכון גרסת בנייה #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: Windows Build | |
on: | |
push: | |
branches: | |
- dev | |
tags: | |
- '*' | |
# 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.2 | |
FLUTTER_VERSION: 3.24.0 | |
jobs: | |
build: | |
runs-on: windows-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 Windows | |
run: | | |
flutter config --no-analytics | |
flet build windows --v --no-rich-output | |
env: | |
PYTHONIOENCODING: utf-8 | |
PYTHONUTF8: 1 | |
- name: Upload Windows Artifact | |
uses: actions/[email protected] | |
with: | |
name: windows-build-artifact | |
path: build/windows | |
if-no-files-found: error | |
overwrite: false | |