File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish package to GitHub Packages
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : read
12
+ packages : write
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+
17
+ - name : Set up JDK 11
18
+ uses : actions/setup-java@v3
19
+ with :
20
+ java-version : ' 11'
21
+ distribution : ' temurin'
22
+ cache : maven
23
+
24
+ - name : Build with Maven
25
+ run : mvn -B package --file pom.xml
26
+
27
+ - name : Publish package
28
+ run : mvn --batch-mode deploy
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 37
37
</scm >
38
38
39
39
<properties >
40
+ <revision >${project.version}</revision >
40
41
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
41
42
<maven .compiler.source>11</maven .compiler.source>
42
43
<maven .compiler.target>11</maven .compiler.target>
You can’t perform that action at this time.
0 commit comments