File tree 1 file changed +41
-0
lines changed
1 file changed +41
-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
+ run : |
31
+ echo "${{ secrets.BAREMAPS_GPG_SECRET_KEY }}" | gpg --batch --import
32
+ gpg --list-keys
33
+ env :
34
+ GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
35
+
36
+ - name : Publish snapshots on Apache Nexus
37
+ env :
38
+ NEXUS_USER : ${{ secrets.NEXUS_USER }}
39
+ NEXUS_PW : ${{ secrets.NEXUS_PW }}
40
+ run : |
41
+ ./mvnw deploy -DskipTests -Dmaven.javadoc.skip=true -B -V
You can’t perform that action at this time.
0 commit comments