Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix release.yml

Zhichang Yu755989e33028
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 000fb53b48..3c0c069b6d 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
-
- - name: Build ragflow-sdk
- if: startsWith(github.ref, 'refs/tags/v')
run: |
- cd sdk/python && \
- uv build
+ 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: 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-sdk
if: startsWith(github.ref, 'refs/tags/v')
run: |
- cd admin/client && \
- uv build
+ cd sdk/python && uv build
+ twine upload sdk/python/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- - name: Publish client package distributions to PyPI
+ - name: Build and push ragflow-cli
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
+ run: |
+ cd admin/client && uv build
+ twine upload admin/client/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}