Pakobbix c15bac5579 Added Tag Counting for the release files
Added the webuiGUI.py to the Packages.
2023-05-13 22:53:11 +02:00

49 lines
1.4 KiB
YAML

name: Package Release
on:
push:
branches:
- main
jobs:
package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
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
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@v2
with:
name: ${{ matrix.os }}-binary-v${{ steps.incremented_tag.outputs.tag }}
path: dist