diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..f751354
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,36 @@
+name: Publish package to the Maven Central Repository
+on:
+ release:
+ types: [created]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+
+ - uses: actions/checkout@v3
+
+ - name: Set up Java 11
+ uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+
+ - name: Install Blosc native library
+ run: sudo apt-get install -y libblosc1
+
+ - id: install-secret-key
+ name: Install gpg secret key
+ run: |
+ # Install gpg secret key
+ cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
+ # Verify gpg secret key
+ gpg --list-secret-keys --keyid-format LONG
+
+ - name: Publish package
+ run: mvn --batch-mode deploy
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
diff --git a/pom.xml b/pom.xml
index e3f4e4b..145fdc3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,9 +4,42 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- dev.zarr.zarrjava
+ dev.zarr
zarr-java
- 0.0.1-SNAPSHOT
+ 0.0.1
+
+ zarr-java
+
+
+ zarr-java is a Java library providing an implementation of chunked,
+ compressed, N-dimensional arrays close to the zarr-python package.
+
+
+ https://github.com/zarr-developers/zarr-java
+
+
+
+ MIT License
+ https://opensource.org/license/mit/
+ repo
+
+
+
+
+ https://github.com/zarr-developers/zarr-java
+ scm:git:git://github.com/zarr-developers/zarr-java.git
+ scm:git:git@github.com:zarr-developers/zarr-java.git
+
+
+
+
+ normanrz
+ Norman Rzepka
+
+ maintainer
+
+
+
8
@@ -85,6 +118,17 @@
+
+
+ ossrh
+ https://s01.oss.sonatype.org/content/repositories/snapshots
+
+
+ ossrh
+ https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+
unidata-all
@@ -103,6 +147,39 @@
false
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.5.0
+
+
+ attach-javadoc
+
+ jar
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.6
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+ 9F88D86AD9A0D91E
+
+
+
+