Skip to content

Commit

Permalink
fix workflow .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
delington committed Oct 16, 2023
1 parent 85a39ea commit 8780f14
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ name: Build and Release

on:
push:
branches:
- master
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v4
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.10
python-version: "3.10"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Install PyInstaller
run: pip install -r pyinstaller

- name: Build .exe
run: pyinstaller --onefile main.py # Replace your_script.py with your app's entry point
run: pyinstaller --onefile main.py

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: dist/your_script # Replace your_script with the name of the .exe file you want to release
files: dist/main.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8780f14

Please sign in to comment.