Create tag.yaml (#2459)

This commit is contained in:
Avgustin Marinov
2025-06-16 18:05:48 +03:00
committed by GitHub
parent 66cc3aa418
commit 9f0f25aa7c

41
.github/workflows/tag.yaml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Tag
on:
# enable running the workflow manually
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK & Maven Central credentials
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Tag
run: |
git tag -a ${TAG} -m "Release version ${TAG}"
git push origin ${TAG}
env:
TAG: ${{ github.event.inputs.tag }}