Skip to content

Commit

Permalink
Create windows executable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan authored Jul 2, 2024
1 parent 538b591 commit fd3ad93
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Build with PyInstaller

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-latest

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.3' # specify the Python version you need

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build with PyInstaller
run: |
pyinstaller --onefile Smelt.py # replace with your spec file if you have one
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/

0 comments on commit fd3ad93

Please sign in to comment.