We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae78a6 commit 588ec20Copy full SHA for 588ec20
.github/workflows/maven.yml
@@ -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