Skip to content

Commit 96b9b6c

Browse files
authored
Create create_release_tag.yml
1 parent 1e17b74 commit 96b9b6c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Creat New Release Tag
2+
3+
on: workflow_dispatch
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
create_release_tag:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Maven Central Repository
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
cache: 'maven'
19+
20+
- name: Set Release Version
21+
id: create_release
22+
run: |
23+
mvn versions:set versions:commit -DremoveSnapshot
24+
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
25+
26+
- uses: stefanzweifel/git-auto-commit-action@v5
27+
with:
28+
commit_message: "Prepare release: github-api-${{ steps.new_release.outputs.version }}"
29+
tagging_message: 'github-api-${{ steps.new_release.outputs.version }}'
30+
31+
- name: Increment Snapshot Version
32+
id: next_snapshot
33+
run: |
34+
mvn versions:set versions:commit -DnextSnapshot
35+
36+
- uses: stefanzweifel/git-auto-commit-action@v5
37+
with:
38+
commit_message: "Prepare for next development iteration"

0 commit comments

Comments
 (0)