Skip to content

run on any brench

run on any brench #9

name: Build Python .exe with PyInstaller
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller aiohttp
- name: Build with PyInstaller
run: |
pyinstaller --onefile main.py
- name: Upload .exe
uses: actions/upload-artifact@v2
with:
name: your_script.exe
path: dist/your_script.exe