feat(backend): enable poetry-dynamic-versioning

This commit is contained in:
K900
2023-11-14 09:49:21 +03:00
committed by AAGaming
parent 06690890fb
commit e2ade0d731
3 changed files with 23 additions and 7 deletions

View File

@@ -33,7 +33,9 @@ jobs:
- name: Install Python dependencies ⬇️
working-directory: ./backend
run: C:\Users\runneradmin\.local\bin\poetry install --no-interaction
run: |
C:\Users\runneradmin\.local\bin\poetry self add "poetry-dynamic-versioning[plugin]"
C:\Users\runneradmin\.local\bin\poetry install --no-interaction
- name: Install JS dependencies ⬇️
working-directory: ./frontend
@@ -47,7 +49,9 @@ jobs:
- name: Build Python Backend 🛠️
working-directory: ./backend
run: C:\Users\runneradmin\.local\bin\poetry run pyinstaller pyinstaller.spec
run: |
C:\Users\runneradmin\.local\bin\poetry dynamic-versioning
C:\Users\runneradmin\.local\bin\poetry run pyinstaller pyinstaller.spec
- name: Build Python Backend (noconsole) 🛠️
working-directory: ./backend

View File

@@ -41,6 +41,8 @@ jobs:
- name: Checkout 🧰
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS 18 💎
uses: actions/setup-node@v3
@@ -76,7 +78,9 @@ jobs:
- name: Install Python dependencies ⬇️
working-directory: ./backend
run: poetry install --no-interaction
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --no-interaction
- name: Install JS dependencies ⬇️
working-directory: ./frontend
@@ -90,7 +94,9 @@ jobs:
- name: Build Python Backend 🛠️
working-directory: ./backend
run: pyinstaller pyinstaller.spec
run: |
poetry dynamic-versioning
pyinstaller pyinstaller.spec
- name: Upload package artifact ⬆️
if: ${{ !env.ACT }}