From 755989e330283bbce6456feace259cf428458bb1 Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Tue, 28 Oct 2025 13:29:00 +0800 Subject: [PATCH] Fix release.yml --- .github/workflows/release.yml | 51 +++++++++-------------------------- 1 file changed, 12 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 000fb53b4..3c0c069b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,49 +75,22 @@ jobs: # The body field does not support environment variable substitution directly. body_path: release_body.md - # https://github.com/marketplace/actions/docker-login - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: infiniflow - password: ${{ secrets.DOCKERHUB_TOKEN }} - - # https://github.com/marketplace/actions/build-and-push-docker-images - name: Build and push image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: | - infiniflow/ragflow:${{ env.RELEASE_TAG }} - infiniflow/ragflow:latest - file: Dockerfile - platforms: linux/amd64 + run: | + echo ${{ secrets.DOCKERHUB_TOKEN }} | sudo docker login --username infiniflow --password-stdin + sudo docker build -t infiniflow/ragflow:${RELEASE_TAG} -f Dockerfile . + sudo docker build -t infiniflow/ragflow:latest -f Dockerfile . + sudo docker push infiniflow/infinity:${RELEASE_TAG} + sudo docker push infiniflow/infinity:latest - - name: Build ragflow-sdk + - name: Build and push ragflow-sdk if: startsWith(github.ref, 'refs/tags/v') run: | - cd sdk/python && \ - uv build + cd sdk/python && uv build + twine upload sdk/python/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} - - name: Publish package distributions to PyPI - if: startsWith(github.ref, 'refs/tags/v') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: sdk/python/dist/ - password: ${{ secrets.PYPI_API_TOKEN }} - verbose: true - - - name: Build ragflow-cli + - name: Build and push ragflow-cli if: startsWith(github.ref, 'refs/tags/v') run: | - cd admin/client && \ - uv build - - - name: Publish client package distributions to PyPI - if: startsWith(github.ref, 'refs/tags/v') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: admin/client/dist/ - password: ${{ secrets.PYPI_API_TOKEN }} - verbose: true + cd admin/client && uv build + twine upload admin/client/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}