From 7aa597afd1b9fd955c6465fcd74b0f651828da88 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 4 Jan 2024 13:41:44 +0530 Subject: [PATCH] Update new_release.yml --- .github/workflows/new_release.yml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/new_release.yml b/.github/workflows/new_release.yml index b32b59e95..ac59903a5 100644 --- a/.github/workflows/new_release.yml +++ b/.github/workflows/new_release.yml @@ -1,32 +1,15 @@ -name: New LiteLLM Release - +name: Release project on: workflow_dispatch: - inputs: - tag: - description: "The tag version you want to release" jobs: - create-release: + release: + name: Release runs-on: ubuntu-latest + steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Set up Git - uses: actions/setup-node@v3 - with: - node-version: 14 - - - name: Create GitHub Release - if: success() - run: | - # Install gh CLI - npm install -g gh - - # Set up git configuration - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - - # Create a release with the specified tag - gh release create ${{ github.event.inputs.tag }} -t "${{ github.event.inputs.tag }}" -n "Release ${{ github.event.inputs.tag }}" + - name: Release + uses: huggingface/semver-release-action@latest