Skip to content

Commit

Permalink
fix: set up python in pypi release step (#1825)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Dec 28, 2023
1 parent 81b3032 commit 3394589
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 39 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/envd-starship.yaml

This file was deleted.

32 changes: 30 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3394589

Please sign in to comment.