File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Maven Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ release :
7
+ types : [ created ]
8
+
9
+ jobs :
10
+ publish :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+
16
+ - name : ' Cache Maven packages'
17
+ uses : actions/cache@v4
18
+ with :
19
+ path : ~/.m2
20
+ key : ' cache'
21
+ restore-keys : ' cache'
22
+
23
+ - name : Setup Java JDK
24
+ uses : actions/setup-java@v4
25
+ with :
26
+ distribution : ' zulu'
27
+ java-version : 11
28
+
29
+ - name : ' Build with Maven'
30
+ run : mvn -B install --file pom.xml
31
+
32
+ - name : Release
33
+ uses : qcastel/github-actions-maven-release@master
34
+ env :
35
+ JAVA_HOME : /usr/lib/jvm/java-11-openjdk/
36
+ with :
37
+ git-release-bot-name : " bot-release"
38
+ git-release-bot-email :
" [email protected] "
39
+
40
+ maven-args : " -DskipTests -DskipITs -Dmaven.deploy.skip=true -Psonatype-oss-release"
41
+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
42
+
43
+ gpg-enabled : true
44
+ gpg-key-id : ${{ secrets.GPG_KEY_ID }}
45
+ gpg-key : ${{ secrets.GPG_KEY }}
46
+ gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
47
+
48
+ - name : ' Remove Snapshots Before Caching'
49
+ run : find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf
You can’t perform that action at this time.
0 commit comments