File tree 1 file changed +44
-0
lines changed
1 file changed +44
-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 : Build and Test
24
+ uses : qcastel/github-actions-maven-cmd@master
25
+ env :
26
+ JAVA_HOME : /usr/lib/jvm/java-11-openjdk/
27
+ with :
28
+ maven-args : " -B install --file pom.xml"
29
+
30
+ - name : Release
31
+ uses : qcastel/github-actions-maven-release@master
32
+ env :
33
+ JAVA_HOME : /usr/lib/jvm/java-11-openjdk/
34
+ with :
35
+ git-release-bot-name : " bot-release"
36
+ git-release-bot-email :
" [email protected] "
37
+
38
+ maven-args : " -DskipTests -DskipITs -Dmaven.deploy.skip=true -Psonatype-oss-release"
39
+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
40
+
41
+ gpg-enabled : true
42
+ gpg-key-id : ${{ secrets.GPG_KEY_ID }}
43
+ gpg-key : ${{ secrets.GPG_KEY }}
44
+ gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments