Skip to content

Commit

Permalink
Create create_release_tag.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored Nov 23, 2023
1 parent 1e17b74 commit 96b9b6c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/create_release_tag.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 96b9b6c

Please sign in to comment.