Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-arash authored Sep 15, 2024
1 parent 016f2e4 commit 4028988
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Python Application with PyInstaller

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install scapy colorama pyinstaller
- name: Build with PyInstaller
run: |
pyinstaller --onefile your_python_file.py
- name: Upload the built file
uses: actions/upload-artifact@v3
with:
name: built-app
path: dist/

0 comments on commit 4028988

Please sign in to comment.