Skip to content

Commit 3394589

Browse files
authored
fix: set up python in pypi release step (#1825)
Signed-off-by: Keming <[email protected]>
1 parent 81b3032 commit 3394589

File tree

2 files changed

+30
-39
lines changed

2 files changed

+30
-39
lines changed

.github/workflows/envd-starship.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
mkdir -p bin
7474
mv dist/envd_darwin_all/envd bin/envd
7575
chmod +x bin/envd
76+
- name: setup Python
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: '3.11'
7680
- name: Build wheels
7781
uses: pypa/[email protected]
7882
env:
@@ -82,8 +86,8 @@ jobs:
8286
- name: Build source distribution
8387
if: runner.os == 'Linux' # Only release source under linux to avoid conflict
8488
run: |
85-
python3 -m pip install wheel
86-
python3 setup.py sdist
89+
python -m pip install wheel
90+
python setup.py sdist
8791
mv dist/*.tar.gz wheelhouse/
8892
- name: Upload to PyPI
8993
env:
@@ -119,6 +123,30 @@ jobs:
119123
- name: Docker Buildx
120124
run: |
121125
./base-images/build.sh
126+
envd_starship_publish:
127+
name: Push starship image to Docker Hub
128+
runs-on: ubuntu-latest
129+
needs: goreleaser
130+
steps:
131+
- uses: actions/checkout@v4
132+
- name: Docker Login
133+
uses: docker/login-action@v3
134+
with:
135+
username: ${{ secrets.DOCKERIO_USERNAME }}
136+
password: ${{ secrets.DOCKERIO_TOKEN }}
137+
- name: Docker Setup QEMU
138+
uses: docker/setup-qemu-action@v3
139+
- name: Set up Docker Buildx
140+
uses: docker/setup-buildx-action@v3
141+
- name: Build and push
142+
uses: docker/build-push-action@v5
143+
with:
144+
push: true
145+
file: base-images/envd-starship/envd-starship.Dockerfile
146+
platforms: linux/amd64,linux/arm64
147+
tags: tensorchord/starship:v0.0.1
148+
cache-from: type=gha
149+
cache-to: type=gha,mode=max
122150
envd_image_push:
123151
name: Build & push envd images
124152
# only trigger on main repo when tag starts with v

0 commit comments

Comments
 (0)