mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(ci/cd) use correct release tag
This commit is contained in:
parent
c19195131c
commit
fa6f1521c9
1 changed files with 2 additions and 28 deletions
30
.github/workflows/ghcr_deploy.yml
vendored
30
.github/workflows/ghcr_deploy.yml
vendored
|
@ -13,31 +13,6 @@ env:
|
||||||
|
|
||||||
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
||||||
jobs:
|
jobs:
|
||||||
read-version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
id: read-version
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.8 # Adjust the Python version as needed
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pip install toml
|
|
||||||
|
|
||||||
- name: Read version from pyproject.toml
|
|
||||||
id: read-version
|
|
||||||
run: |
|
|
||||||
version=$(python -c 'import toml; print(toml.load("pyproject.toml")["tool"]["commitizen"]["version"])')
|
|
||||||
printf "LITELLM_VERSION=%s" "$version" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Display version
|
|
||||||
run: echo "Current version is ${{ steps.read-version.outputs.LITELLM_VERSION }}"
|
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
||||||
|
@ -102,16 +77,15 @@ jobs:
|
||||||
tags: ${{ steps.meta-alpine.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}
|
tags: ${{ steps.meta-alpine.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}
|
||||||
labels: ${{ steps.meta-alpine.outputs.labels }}
|
labels: ${{ steps.meta-alpine.outputs.labels }}
|
||||||
release:
|
release:
|
||||||
needs: read-version
|
|
||||||
name: "New LiteLLM Release"
|
name: "New LiteLLM Release"
|
||||||
|
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Display version
|
- name: Display version
|
||||||
run: echo "Current version is ${{ needs.read-version.outputs.LITELLM_VERSION }}"
|
run: echo "Current version is ${{ github.event.inputs.tag }}"
|
||||||
- name: "Set Release Tag"
|
- name: "Set Release Tag"
|
||||||
run: echo "RELEASE_TAG=${{ needs.read-version.outputs.LITELLM_VERSION }}" >> $GITHUB_ENV
|
run: echo "RELEASE_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
||||||
- name: Display release tag
|
- name: Display release tag
|
||||||
run: echo "RELEASE_TAG is $RELEASE_TAG"
|
run: echo "RELEASE_TAG is $RELEASE_TAG"
|
||||||
- name: "Create release"
|
- name: "Create release"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue