forked from phoenix/litellm-mirror
(ci/cd) release workflow
This commit is contained in:
parent
540dc8e11b
commit
4245274934
2 changed files with 0 additions and 36 deletions
36
.github/workflows/new_release.yml
vendored
36
.github/workflows/new_release.yml
vendored
|
@ -1,36 +0,0 @@
|
||||||
name: New Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
tag:
|
|
||||||
description: "The tag version you want to release"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
create-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
|
|
||||||
- name: Install gh CLI
|
|
||||||
run: npm install -g gh
|
|
||||||
|
|
||||||
- name: Set up Git
|
|
||||||
run: |
|
|
||||||
git config --global user.email "actions@github.com"
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
|
|
||||||
- name: Login to GitHub with token
|
|
||||||
run: gh auth login --with-token <<<"${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Create GitHub Release
|
|
||||||
if: success()
|
|
||||||
run: |
|
|
||||||
# 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