Skip to content

Release Git Tag

Release Git Tag #1

name: Release Git Tag
on:
workflow_dispatch:
inputs:
git_tag:
description: 'the git tag to publish'
type: string
required: true
concurrency:
group: release-git-tag
jobs:
check-branch:
uses: ./.github/workflows/check-branch.yaml
secrets: inherit
publish-tag:
needs: [ check-branch ]
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Create the git tag
run: |
git config --global user.name "Meatie CI"
git config --global user.email "[email protected]"
git tag --annotate "${{ github.event.inputs.git_tag }}" --message "Version ${{ github.event.inputs.git_tag }}"
git push origin "${{ github.event.inputs.git_tag }}"