From 96b9b6cc291707b8fe13e2f796a9286b81dcb138 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Thu, 23 Nov 2023 00:03:40 -0800 Subject: [PATCH] Create create_release_tag.yml --- .github/workflows/create_release_tag.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/create_release_tag.yml diff --git a/.github/workflows/create_release_tag.yml b/.github/workflows/create_release_tag.yml new file mode 100644 index 0000000000..1b77a16aec --- /dev/null +++ b/.github/workflows/create_release_tag.yml @@ -0,0 +1,38 @@ +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: create_release + run: | + mvn versions:set versions:commit -DremoveSnapshot + echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Prepare release: github-api-${{ steps.new_release.outputs.version }}" + tagging_message: 'github-api-${{ steps.new_release.outputs.version }}' + + - name: Increment Snapshot Version + id: next_snapshot + run: | + mvn versions:set versions:commit -DnextSnapshot + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Prepare for next development iteration"