mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 15:39:39 +00:00
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: Package Release
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/**
|
|
|
|
env:
|
|
PACKAGE_VERSION: v1.4
|
|
|
|
jobs:
|
|
package-self-hosted-ubuntu:
|
|
runs-on: self-hosted
|
|
if: runner.os == 'Linux'
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
|
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-${{ env.PACKAGE_VERSION }}
|
|
path: dist
|
|
|
|
package-self-hosted-windows:
|
|
runs-on: self-hosted
|
|
if: runner.os == 'Windows'
|
|
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-${{ env.PACKAGE_VERSION }}
|
|
path: dist
|