Fix release.yml

This commit is contained in:
Zhichang Yu
2025-10-28 13:29:00 +08:00
parent 5b10daa72a
commit 755989e330

View File

@ -75,49 +75,22 @@ jobs:
# The body field does not support environment variable substitution directly. # The body field does not support environment variable substitution directly.
body_path: release_body.md 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 - name: Build and push image
uses: docker/build-push-action@v6 run: |
with: echo ${{ secrets.DOCKERHUB_TOKEN }} | sudo docker login --username infiniflow --password-stdin
context: . sudo docker build -t infiniflow/ragflow:${RELEASE_TAG} -f Dockerfile .
push: true sudo docker build -t infiniflow/ragflow:latest -f Dockerfile .
tags: | sudo docker push infiniflow/infinity:${RELEASE_TAG}
infiniflow/ragflow:${{ env.RELEASE_TAG }} sudo docker push infiniflow/infinity:latest
infiniflow/ragflow:latest
file: Dockerfile
platforms: linux/amd64
- name: Build ragflow-sdk - name: Build and push ragflow-sdk
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
run: | run: |
cd sdk/python && \ cd sdk/python && uv build
uv build twine upload sdk/python/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- name: Publish 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: sdk/python/dist/
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
- name: Build ragflow-cli
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
run: | run: |
cd admin/client && \ cd admin/client && uv build
uv build twine upload admin/client/dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
- 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