Commit 8431b88 1 parent f5ac845 commit 8431b88 Copy full SHA for 8431b88
File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2
+ # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3
+
4
+ name : Maven Package
5
+
6
+ on :
7
+ release :
8
+ types : [created]
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up JDK 1.8
18
+ uses : actions/setup-java@v1
19
+ with :
20
+ java-version : 1.8
21
+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
22
+ settings-path : ${{ github.workspace }} # location for the settings.xml file
23
+
24
+ - name : Build with Maven
25
+ run : mvn -B package --file pom.xml
26
+
27
+ - name : Publish to GitHub Packages Apache Maven
28
+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
29
+ env :
30
+ GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments