File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy snapshot
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ deploy-snapshot :
10
+ name : Deploy snapshot
11
+ runs-on : ubuntu-latest
12
+ if : " !startsWith(github.ref, 'refs/tags/v')"
13
+ steps :
14
+
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Set up Java 17
19
+ uses : actions/setup-java@v3
20
+ with :
21
+ java-version : 17
22
+ distribution : temurin
23
+ cache : maven
24
+ server-id : apache.snapshots.https
25
+ server-username : NEXUS_USER
26
+ server-password : NEXUS_PW
27
+ gpg-private-key : ${{ secrets.BAREMAPS_GPG_SECRET_KEY }}
28
+
29
+ - name : Set up GPG
30
+ shell : bash
31
+ run : |
32
+ echo "${{ secrets.BAREMAPS_GPG_SECRET_KEY }}" | gpg --batch --import
33
+ gpg --list-keys
34
+ env :
35
+ GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
36
+
37
+ - name : Publish snapshots on Apache Nexus
38
+ shell : bash
39
+ env :
40
+ NEXUS_USER : ${{ secrets.NEXUS_USER }}
41
+ NEXUS_PW : ${{ secrets.NEXUS_PW }}
42
+ run : |
43
+ ./mvnw deploy -DskipTests -Dmaven.javadoc.skip=true -B -V
You can’t perform that action at this time.
0 commit comments