Let's see if it works this time. #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.6 # Use a specific latest version | |
- name: Set up Node.js for GitHub Actions | |
uses: actions/setup-node@v4.0.2 # Ensure using Node.js 20 | |
with: | |
node-version: '20' | |
- name: Set up Python | |
uses: actions/setup-python@v5.1.0 # Use a specific latest version | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller requests PyQt6 | |
- name: Build executable | |
run: | | |
pyinstaller --name OpenAI_TTS_GUI --onefile --windowed --icon=logo.ico main.py | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v4.3.3 # Use a specific latest version | |
with: | |
name: OpenAI_TTS_GUI-${{ matrix.os }} | |
path: dist/OpenAI_TTS_GUI* |