33 lines
844 B
YAML
33 lines
844 B
YAML
name: Build Windows
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Windows
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Configure Git Redirect
|
|
run: git config --global url."http://192.168.50.24:3000/".insteadOf "http://server:3000/"
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
|
|
- name: Build Executable
|
|
run: |
|
|
pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src src/main.py
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: TeletextEditor-Windows
|
|
path: dist/TeletextEditor_Windows.exe
|