forked from phoenix/litellm-mirror
Update new_release.yml
This commit is contained in:
parent
66607de725
commit
7aa597afd1
1 changed files with 7 additions and 24 deletions
31
.github/workflows/new_release.yml
vendored
31
.github/workflows/new_release.yml
vendored
|
@ -1,32 +1,15 @@
|
||||||
name: New LiteLLM Release
|
name: Release project
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
tag:
|
|
||||||
description: "The tag version you want to release"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
release:
|
||||||
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Git
|
- name: Release
|
||||||
uses: actions/setup-node@v3
|
uses: huggingface/semver-release-action@latest
|
||||||
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 }}"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue