File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed
Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 11name : Publish package to the Maven Central Repository
22on :
33 release :
4- types : [created]
4+ types : [created, published ]
55jobs :
66 publish :
77 runs-on : ubuntu-latest
3939 - name : Install uv
4040 uses : astral-sh/setup-uv@v6
4141
42- - name : Set up zarr-python
43- run : |
44- uv venv && uv init
45- uv add zarr
46-
4742 - name : Download testdata
4843 run : |
4944 mkdir testoutput
5449 # End copy from ci.yml
5550
5651 - name : Publish package
57- run : mvn --batch-mode deploy -DargLine="-Xmx6g"
52+ run : |
53+ mkdir -p ~/.m2
54+ echo "<settings><servers><server><id>central</id><username>$MAVEN_USERNAME</username><password>$MAVEN_PASSWORD</password></server></servers></settings>" > ~/.m2/settings.xml
55+ mvn --batch-mode deploy -DargLine="-Xmx6g"
5856 env :
5957 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
6058 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 66
77 <groupId >dev.zarr</groupId >
88 <artifactId >zarr-java</artifactId >
9- <version >0.0.5 </version >
9+ <version >0.0.9 </version >
1010
1111 <name >zarr-java</name >
1212
123123 </dependency >
124124 </dependencies >
125125
126- <distributionManagement >
127- <snapshotRepository >
128- <id >ossrh</id >
129- <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
130- </snapshotRepository >
131- <repository >
132- <id >ossrh</id >
133- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
134- </repository >
135- </distributionManagement >
136-
137126 <repositories >
138127 <repository >
139128 <id >unidata-all</id >
232221 </execution >
233222 </executions >
234223 </plugin >
224+ <plugin >
225+ <groupId >org.sonatype.central</groupId >
226+ <artifactId >central-publishing-maven-plugin</artifactId >
227+ <version >0.8.0</version >
228+ <extensions >true</extensions >
229+ <configuration >
230+ <publishingServerId >central</publishingServerId >
231+ <tokenAuth >true</tokenAuth >
232+ </configuration >
233+ </plugin >
235234 </plugins >
236235 </build >
237236</project >
You can’t perform that action at this time.
0 commit comments