-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set up python in pypi release step (#1825)
Signed-off-by: Keming <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,10 @@ jobs: | |
mkdir -p bin | ||
mv dist/envd_darwin_all/envd bin/envd | ||
chmod +x bin/envd | ||
- name: setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
|
@@ -82,8 +86,8 @@ jobs: | |
- name: Build source distribution | ||
if: runner.os == 'Linux' # Only release source under linux to avoid conflict | ||
run: | | ||
python3 -m pip install wheel | ||
python3 setup.py sdist | ||
python -m pip install wheel | ||
python setup.py sdist | ||
mv dist/*.tar.gz wheelhouse/ | ||
- name: Upload to PyPI | ||
env: | ||
|
@@ -119,6 +123,30 @@ jobs: | |
- name: Docker Buildx | ||
run: | | ||
./base-images/build.sh | ||
envd_starship_publish: | ||
name: Push starship image to Docker Hub | ||
runs-on: ubuntu-latest | ||
needs: goreleaser | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Docker Login | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERIO_USERNAME }} | ||
password: ${{ secrets.DOCKERIO_TOKEN }} | ||
- name: Docker Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
file: base-images/envd-starship/envd-starship.Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: tensorchord/starship:v0.0.1 | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
envd_image_push: | ||
name: Build & push envd images | ||
# only trigger on main repo when tag starts with v | ||
|