From a4fd1491c5a08d2f86307e461539ab214e1e67c3 Mon Sep 17 00:00:00 2001 From: Michael Flanigan <7891356+mjfii@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:03:31 -0700 Subject: [PATCH] [UPDATE] corrected versioning py script in CD workflow --- .github/workflows/version-deployment.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/version-deployment.yml b/.github/workflows/version-deployment.yml index d9165c8..8e51eb2 100644 --- a/.github/workflows/version-deployment.yml +++ b/.github/workflows/version-deployment.yml @@ -1,4 +1,3 @@ - name: CD on: @@ -25,15 +24,17 @@ jobs: run: | python -m pip install --upgrade pip pip install build + pip install setuptools + pip install wheel pip install toml pip install -r requirements.txt - - - name: asdf + - name: Update Release Version run: | + python -c """ import toml import os - _ver = '$RELEASE_VERSION' + _ver = os.environ.get('RELEASE_VERSION', 'v0.0.0') with open('pyproject.toml', 'r') as f: config = toml.load(f) @@ -42,7 +43,7 @@ jobs: with open('pyproject.toml', 'w') as f: toml.dump(config, f) print(f"Project Version updated to {_ver} in pyproject.toml file.") - + """ - name: Build package run: python -m build - name: Publish package