mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 18:39:40 +00:00
Added Tag Counting for the release files
Added the webuiGUI.py to the Packages.
This commit is contained in:
parent
85666d3cc2
commit
c15bac5579
22
.github/workflows/package.yml
vendored
22
.github/workflows/package.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -25,12 +25,24 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
|
|
||||||
|
- name: Get Last Tag
|
||||||
|
id: last_tag
|
||||||
|
run: echo "::set-output name=tag::$(git describe --abbrev=0 --tags)"
|
||||||
|
|
||||||
|
- name: Increment Tag
|
||||||
|
id: incremented_tag
|
||||||
|
run: |
|
||||||
|
tag=${{ steps.last_tag.outputs.tag }}
|
||||||
|
incremented_tag=$(python -c "version_parts = tag.split('.'); version_parts[-1] = str(float(version_parts[-1]) + 0.1); print('.'.join(version_parts))")
|
||||||
|
echo "::set-output name=tag::$incremented_tag"
|
||||||
|
|
||||||
- name: Build and package
|
- name: Build and package
|
||||||
run: pyinstaller --noconfirm --onefile --windowed StartUI.py
|
run: |
|
||||||
|
pyinstaller --noconfirm --onefile --windowed StartUI.py
|
||||||
|
cp webuiGUI.py dist/ # Copy webuiGUI.py to the dist directory
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-binary
|
name: ${{ matrix.os }}-binary-v${{ steps.incremented_tag.outputs.tag }}
|
||||||
path: dist # Assuming the packaged files are created in a 'dist' directory
|
path: dist
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user