.github/workflows/manual_deploy.yml #3
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_name: | |
description: 'Tag name (v*.*.*)' | |
required: true | |
type: string | |
tag_message: | |
description: 'Message for the tag' | |
required: true | |
type: string | |
jobs: | |
create_tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Git user | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
- name: Create and push tag | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git tag -a "${{ github.event.inputs.tag_name }}" -m "${{ github.event.inputs.tag_message }}" | |
git push origin "${{ github.event.inputs.tag_name }}" |