Skip to content

Commit 588ec20

Browse files
committed
Add GitHub Actions workflow
1 parent 3ae78a6 commit 588ec20

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/maven.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#file: noinspection SpellCheckingInspection
2+
name: Build and Publish
3+
4+
on:
5+
push:
6+
tags: [ "*.*" ]
7+
paths:
8+
- "src/main/**"
9+
- ".github/workflows/**"
10+
- "pom.xml"
11+
12+
jobs:
13+
build:
14+
name: Build and Publish
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: "17"
24+
distribution: 'temurin'
25+
cache: maven
26+
server-id: github
27+
settings-path: ${{ github.workspace }}
28+
29+
- name: Publish to GitHub Packages Apache Maven
30+
run: mvn --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
31+
if: startsWith(github.ref, 'refs/tags/')
32+
env:
33+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)