Release a git 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: Release a git tag | |
on: | |
workflow_dispatch: | |
inputs: | |
git_tag: | |
description: 'the git tag to publish' | |
type: string | |
required: true | |
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 | |
- name: Create the git tag | |
run: | | |
git config --global user.name "Glove CI" | |
git config --global user.email "glove-ci@users.noreply.github.com" | |
git tag --annotate "${{ github.event.inputs.git_tag }}" --message "Version ${{ github.event.inputs.git_tag }}" | |
git push origin "${{ github.event.inputs.git_tag }}" |