Skip to content

Commit 1b6eecf

Browse files
committed
Fix building dstack package
1 parent 908f079 commit 1b6eecf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,12 @@ jobs:
230230
- name: Upload pip package
231231
run: |
232232
VERSION=${GITHUB_REF#refs/tags/}
233-
BASE_IMAGE=$(cat src/dstack/version.py | grep base_image)
233+
BASE_IMAGE=$(cat src/dstack/version.py | grep "base_image = ")
234+
BASE_IMAGE_UBUNTU_VERSION=$(cat src/dstack/version.py | grep "base_image_ubuntu_version = ")
234235
echo "__version__ = \"$VERSION\"" > src/dstack/version.py
235236
echo "__is_release__ = True" >> src/dstack/version.py
236237
echo $BASE_IMAGE >> src/dstack/version.py
238+
echo $BASE_IMAGE_UBUNTU_VERSION >> src/dstack/version.py
237239
cp README.md src
238240
uv build
239241
uv publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}

src/dstack/version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# WARNING:
2+
# This file is overwritten when building the dstack package in CI.
3+
# If you are adding, removing, or renaming variables,
4+
# remember to update and test the release.yml workflow.
5+
16
__version__ = "0.0.0"
27
__is_release__ = False
38
base_image = "0.10"

0 commit comments

Comments
 (0)