mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 15:39:39 +00:00
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
name: Package Release
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/**
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
package_on_ubuntu:
|
|
runs-on: ubuntu-selfhosted
|
|
steps:
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Upgrade Pip
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
pip install pyinstaller
|
|
|
|
- name: Build and package
|
|
run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:."
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ubuntu-binary-v1.6
|
|
path: dist
|
|
|
|
package_on_windows:
|
|
runs-on: windows-selfhosted
|
|
steps:
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Upgrade Pip
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
pip install pyinstaller
|
|
|
|
- name: Build and package
|
|
run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py;."
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: windows-binary-v1.6
|
|
path: dist
|