to late to fix this now.

This commit is contained in:
Pakobbix 2023-05-17 00:52:39 +02:00
parent 486b31b39e
commit f585e62ada

View File

@ -3,21 +3,22 @@ on:
push: push:
paths: paths:
- .github/workflows/** - .github/workflows/**
workflow_dispatch:
jobs: jobs:
package-linux: package:
runs-on: ubuntu-latest runs-on: self-hosted
strategy: strategy:
matrix: matrix:
python-version: 3.x os: [windows-latest, ubuntu-latest]
steps: steps:
- name: Checkout repository - name: Set up Python
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: ${{ matrix.python-version }} python-version: 3.x
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -33,33 +34,5 @@ jobs:
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: linux-binary-v1.4 name: ${{ matrix.os }}-binary-v1.4
path: dist
package-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build and package
run: |
pyinstaller --noconfirm --onefile --windowed StartUI.py
copy webuiGUI.py dist\ # Copy webuiGUI.py to the dist directory
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: windows-binary-v1.4
path: dist path: dist