Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ jobs:
- name: Upload pip package
run: |
VERSION=${GITHUB_REF#refs/tags/}
BASE_IMAGE=$(cat src/dstack/version.py | grep base_image)
BASE_IMAGE=$(cat src/dstack/version.py | grep "base_image = ")
BASE_IMAGE_UBUNTU_VERSION=$(cat src/dstack/version.py | grep "base_image_ubuntu_version = ")
echo "__version__ = \"$VERSION\"" > src/dstack/version.py
echo "__is_release__ = True" >> src/dstack/version.py
echo $BASE_IMAGE >> src/dstack/version.py
echo $BASE_IMAGE_UBUNTU_VERSION >> src/dstack/version.py
cp README.md src
uv build
uv publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
Expand Down
5 changes: 5 additions & 0 deletions src/dstack/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# WARNING:
# This file is overwritten when building the dstack package in CI.
# If you are adding, removing, or renaming variables,
# remember to update and test the release.yml workflow.

__version__ = "0.0.0"
__is_release__ = False
base_image = "0.10"
Expand Down
Loading