Skip to content

Commit b56c430

Browse files
committed
add GH action for tagging a new release
1 parent e97d564 commit b56c430

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tag_for_release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up JDK 11
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: 11
14+
distribution: 'temurin'
15+
cache: 'maven'
16+
- name: Configure Git user
17+
run: |
18+
git config user.email "actions@github.com"
19+
git config user.name "GitHub Actions"
20+
- name: Publish JAR
21+
run: mvn -B release:prepare
22+
# env:
23+
# GITHUB_TOKEN: ${{ secrets.PACKAGE_PUBLISH_TOKEN }}
24+
# SIGN_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

0 commit comments

Comments
 (0)