File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ jobs:
142
142
permissions :
143
143
contents : read
144
144
packages : write
145
+ if : " startsWith(github.ref, 'refs/tags/')"
145
146
needs : [ add-centos7-jni ]
146
147
steps :
147
148
- name : Checkout
@@ -162,6 +163,20 @@ jobs:
162
163
path : java/target/
163
164
164
165
- name : Deploy to Github Packages
166
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
167
+ working-directory : java
168
+ run : |
169
+ mvn package deploy \
170
+ -DskipTests=true \
171
+ -DskipCompile=true \
172
+ -Dcargo-build.profile=release \
173
+ -DserverId=github \
174
+ -s $GITHUB_WORKSPACE/settings.xml
175
+ env :
176
+ GITHUB_TOKEN : ${{ github.token }}
177
+
178
+ - name : Release to Github Packages
179
+ if : " startsWith(github.ref, 'refs/tags/')"
165
180
working-directory : java
166
181
run : |
167
182
mvn package deploy \
You can’t perform that action at this time.
0 commit comments