File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 22
22
java-version : 11
23
23
cache : ' maven'
24
24
25
- - name : Build with Maven
26
- run : mvn -B package --file pom.xml
25
+ - name : Build and deploy snapshot
26
+ run : ./mvnw -B deploy --file pom.xml -s settings.xml -DossrhUsername=${{ secrets.OSSRH_USERNAME }} -DossrhPassword=${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 231
231
232
232
</build >
233
233
234
+ <distributionManagement >
235
+ <snapshotRepository >
236
+ <id >ossrh</id >
237
+ <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
238
+ </snapshotRepository >
239
+ </distributionManagement >
240
+
234
241
<scm >
235
242
<url >https://github.com/xmolecules/jmolecules</url >
236
243
<connection >scm:git:https://github.com/xmolecules/jmolecules</connection >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <settings xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
4
+ <servers >
5
+ <server >
6
+ <id >ossrh</id >
7
+ <username >${ossrhUsername}</username >
8
+ <password >${ossrhPassword}</password >
9
+ </server >
10
+ </servers >
11
+ </settings >
You can’t perform that action at this time.
0 commit comments