(ci/cd) release workflow

This commit is contained in:
ishaan-jaff 2024-01-04 14:17:59 +05:30
parent 540dc8e11b
commit 4245274934
2 changed files with 0 additions and 36 deletions

View file

@ -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 }}"