Skip to content

fix workflow .yml

fix workflow .yml #2

Workflow file for this run

name: Build and Release
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
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
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: dist/main.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}