@@ -723,6 +723,82 @@ jobs:
723723 path : |
724724 jdbc-artifacts
725725
726+ # Publish SNAPSHOT builds to Maven Central Snapshots repository on main branch
727+ # SNAPSHOTs don't require GPG signatures or validation
728+ # See: https://central.sonatype.org/publish/publish-portal-snapshots/
729+ maven-snapshot-deploy :
730+ if : ${{ github.repository == 'duckdb/duckdb-java' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
731+ name : Maven SNAPSHOT Deploy
732+ runs-on : ubuntu-latest
733+ timeout-minutes : 30
734+ needs :
735+ - java-linux-amd64
736+ - java-linux-amd64-tck
737+ - java-linux-amd64-spark
738+ - java-linux-aarch64
739+ - java-linux-amd64-musl
740+ - java-linux-aarch64-musl
741+ - java-windows-amd64
742+ - java-windows-aarch64
743+ - java-osx-universal
744+
745+ steps :
746+ - uses : actions/checkout@v4
747+ with :
748+ fetch-depth : 0
749+
750+ - name : Set up JDK
751+ uses : actions/setup-java@v4
752+ with :
753+ java-version : ' 11'
754+ distribution : ' temurin'
755+
756+ - shell : bash
757+ run : mkdir jdbc-artifacts
758+
759+ - uses : actions/download-artifact@v4
760+ with :
761+ name : java-linux-amd64
762+ path : jdbc-artifacts/java-linux-amd64
763+
764+ - uses : actions/download-artifact@v4
765+ with :
766+ name : java-linux-aarch64
767+ path : jdbc-artifacts/java-linux-aarch64
768+
769+ - uses : actions/download-artifact@v4
770+ with :
771+ name : java-linux-amd64-musl
772+ path : jdbc-artifacts/java-linux-amd64-musl
773+
774+ - uses : actions/download-artifact@v4
775+ with :
776+ name : java-linux-aarch64-musl
777+ path : jdbc-artifacts/java-linux-aarch64-musl
778+
779+ - uses : actions/download-artifact@v4
780+ with :
781+ name : java-windows-amd64
782+ path : jdbc-artifacts/java-windows-amd64
783+
784+ - uses : actions/download-artifact@v4
785+ with :
786+ name : java-windows-aarch64
787+ path : jdbc-artifacts/java-windows-aarch64
788+
789+ - uses : actions/download-artifact@v4
790+ with :
791+ name : java-osx-universal
792+ path : jdbc-artifacts/java-osx-universal
793+
794+ - name : Deploy SNAPSHOT to Maven Central
795+ shell : bash
796+ env :
797+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
798+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
799+ run : |
800+ python ./scripts/jdbc_maven_deploy_snapshot.py jdbc-artifacts .
801+
726802 java-merge-vendoring-pr :
727803 name : Merge vendoring PR
728804 if : ${{ github.repository == 'duckdb/duckdb-java' && github.event_name == 'pull_request' && github.head_ref == format('vendoring-{0}', github.base_ref) }}
0 commit comments