From e2ade0d731f66d1ef2520bb1f108829c2907a053 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 14 Nov 2023 09:49:21 +0300 Subject: feat(backend): enable poetry-dynamic-versioning --- .github/workflows/build-win.yml | 8 ++++++-- .github/workflows/build.yml | 10 ++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index 5de21402..7b545425 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4333e87e..0440e582 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} -- cgit v1.2.3