Create tag #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create tag | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
type: string | |
description: Name of the tag (Eg v1.0.0) | |
permissions: | |
contents: write | |
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.GA_GORELEASER_TOKEN }} | |
- name: Create tag ${{ inputs.tag }} | |
run: | | |
git tag ${{ inputs.tag }} | |
git push --tags |