Skip to content

Commit

Permalink
[UPDATE] corrected versioning py script in CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfii committed Feb 9, 2024
1 parent a809b06 commit a4fd149
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/version-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: CD

on:
Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit a4fd149

Please sign in to comment.