mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 18:39:40 +00:00
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
name: Package Release
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/**
|
|
|
|
jobs:
|
|
package-linux:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: 3.x
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- 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
|
|
cp webuiGUI.py dist/ # Copy webuiGUI.py to the dist directory
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: linux-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
|