mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 18:39:40 +00:00
still trying to use venv for packaging p2
This commit is contained in:
parent
24e5876eff
commit
a75a8f42bc
17
.github/workflows/package.yml
vendored
17
.github/workflows/package.yml
vendored
@ -21,23 +21,32 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create and activate venv
|
- name: Create and activate venv
|
||||||
|
run: python -m venv StartUI_env
|
||||||
|
|
||||||
|
- name: activate venv
|
||||||
run: |
|
run: |
|
||||||
python -m venv StartUI_env
|
|
||||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
StartUI_env\Scripts\activate.bat
|
StartUI_env\Scripts\activate
|
||||||
else
|
else
|
||||||
source StartUI_env/bin/activate
|
source StartUI_env/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Upgrade Pip
|
||||||
|
run: python -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
|
|
||||||
- name: Build and package
|
- name: Build and package
|
||||||
run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:."
|
run: pyinstaller --noconfirm --onefile --windowed StartUI.py --add-data="webuiGUI.py:."
|
||||||
|
|
||||||
|
- name: deactivate venv
|
||||||
|
run: deactivate
|
||||||
|
|
||||||
|
- name: delete venv
|
||||||
|
run: rm -rf StartUI_env
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user