File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : Publish Snapshot-Core
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - master
9
+ - ' [0-9].x'
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+
14
+ snapshot :
15
+ name : Deploy Snapshot-Core
16
+ runs-on : ubuntu-latest
17
+ defaults :
18
+ run :
19
+ working-directory : ./core
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Set up publishing to maven central
23
+ uses : actions/setup-java@v2
24
+ with :
25
+ java-version : ' 8'
26
+ distribution : ' temurin'
27
+ server-id : ossrh
28
+ server-username : MAVEN_USERNAME
29
+ server-password : MAVEN_PASSWORD
30
+ - name : Cache dependencies
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : |
34
+ ~/.m2/repository
35
+ /var/cache/apt
36
+ key : core-${{hashFiles('**/pom.xml')}}
37
+ - name : mvn offline
38
+ run : |
39
+ mvn -q dependency:go-offline
40
+ - name : deploy parent
41
+ run : |
42
+ mvn --no-transfer-progress \
43
+ -DskipTests deploy -N
44
+ working-directory : .
45
+ env :
46
+ MAVEN_USERNAME : ${{secrets.OSSH_USERNAME}}
47
+ MAVEN_PASSWORD : ${{secrets.OSSH_TOKEN}}
48
+ - name : deploy
49
+ run : |
50
+ mvn --no-transfer-progress \
51
+ -DskipTests deploy
52
+ env :
53
+ MAVEN_USERNAME : ${{secrets.OSSH_USERNAME}}
54
+ MAVEN_PASSWORD : ${{secrets.OSSH_TOKEN}}
You can’t perform that action at this time.
0 commit comments