Skip to content

Commit

Permalink
Merge pull request #2 from ewdlop/ewdlop-patch-1
Browse files Browse the repository at this point in the history
Update and rename build-python-executable.yml to build-python-executa…
  • Loading branch information
ewdlop authored Dec 31, 2024
2 parents 361fe36 + a5373dd commit 37c40f2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 94 deletions.
57 changes: 57 additions & 0 deletions build-python-executable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build and Release Python Scripts
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.x"

- run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build executables
run: |
for file in *.py
do
pyinstaller --onefile "$file"
done
shell: bash

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-executables
path: dist/*

release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- uses: actions/download-artifact@v3

- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
**/*
tag_name: v${{ github.run_number }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94 changes: 0 additions & 94 deletions build-python-executable.yml

This file was deleted.

0 comments on commit 37c40f2

Please sign in to comment.