Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bavodenys committed Jan 21, 2024
2 parents 062a440 + 23e37cf commit a92641e
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
build:
build-linux:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,8 +26,34 @@ jobs:
flet pack main.py
deactivate # Deactivate the virtual environment
- name: Publish Artifact
- name: Publish Artifact for Linux
uses: actions/upload-artifact@v2
with:
name: Bike maintenance tool
name: Bike maintenance tool - Linux
path: dist/main

build-windows:
runs-on: windows-latest # Use a Windows runner for this job

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies and execute flet pack
run: |
python -m venv venv
.\venv\Scripts\Activate # Activate virtual environment on Windows
pip install -r requirements.txt # Replace with your requirements file if needed
flet pack main.py
deactivate # Deactivate the virtual environment
- name: Publish Artifact for Windows
uses: actions/upload-artifact@v2
with:
name: Bike maintenance tool - Windows
path: dist/main.exe

0 comments on commit a92641e

Please sign in to comment.