Skip to content

Commit

Permalink
add workflow to create a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kishaningithub committed May 7, 2024
1 parent 8d50535 commit 06b8380
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create tag

on:
workflow_dispatch:
inputs:
tag:
type: string
description: Name of the tag (Eg v1.0.0)

jobs:
create-tag:
name: Create tag
if: ${{ inputs.tag != '' }}
runs-on: ubuntu-latest
steps:
- name: Checkout branch "main"
uses: actions/checkout@v4
with:
ref: 'main'
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create tag ${{ inputs.tag }}
run: |
git tag ${{ inputs.tag }}
git push --tags

0 comments on commit 06b8380

Please sign in to comment.