Skip to content

Update build_executable.yml #2

Update build_executable.yml

Update build_executable.yml #2

name: Build Executable
on:
push:
branches:
- main
jobs:
build:
name: Build Executable
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x # Change this to the desired Python version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build Executable
run: pyinstaller --onefile trajectory.py
- name: Create 'output' Branch
run: |
git checkout -b output
git add dist/trajectory
git commit -m "Add generated executable"
git push origin output
- name: Clean Up
run: |
git checkout main
git branch -D output