Skip to content

Commit bb5bdf9

Browse files
committed
Merge branch 'main' into memory-store
2 parents 135ca6d + 74b5396 commit bb5bdf9

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish package to the Maven Central Repository
22
on:
33
release:
4-
types: [created]
4+
types: [created, published]
55
jobs:
66
publish:
77
runs-on: ubuntu-latest
@@ -39,11 +39,6 @@ jobs:
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
@@ -54,7 +49,10 @@ jobs:
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 }}

pom.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

@@ -123,17 +123,6 @@
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>
@@ -232,6 +221,16 @@
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>

0 commit comments

Comments
 (0)