Creat New Release Tag #2
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: Creat New Release Tag | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
create_release_tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Maven Central Repository | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Set Release Version | |
id: release | |
run: | | |
mvn -B versions:set versions:commit -DremoveSnapshot | |
echo "version=$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Prepare release: github-api-${{ steps.release.outputs.version }}" | |
tagging_message: 'github-api-${{ steps.release.outputs.version }}' | |
- name: Increment Snapshot Version | |
run: | | |
mvn versions:set versions:commit -DnextSnapshot | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Prepare for next development iteration" |