You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2026/09/24 07:58:39 UTC

(poi) branch trunk updated: CI: publish snapshots to repository.apache.org on pushes to trunk

This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 9ee459e635 CI: publish snapshots to repository.apache.org on pushes to trunk
9ee459e635 is described below

commit 9ee459e63582d416028a5300e078cad98bd6da21
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Thu Sep 24 08:58:32 2026 +0100

    CI: publish snapshots to repository.apache.org on pushes to trunk
    
    Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
 .github/workflows/publish-snapshots.yml | 42 +++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/.github/workflows/publish-snapshots.yml b/.github/workflows/publish-snapshots.yml
new file mode 100644
index 0000000000..56ee4111f0
--- /dev/null
+++ b/.github/workflows/publish-snapshots.yml
@@ -0,0 +1,42 @@
+# Publishes the -SNAPSHOT artifacts to https://repository.apache.org/content/repositories/snapshots/
+# The modules that get published and the Nexus repository are configured in build.gradle.
+
+name: Publish snapshots
+
+on:
+  push:
+    branches: [ trunk ]
+  workflow_dispatch:
+
+# never cancel a publish that is in progress, but only run one at a time
+concurrency:
+  group: ${{ github.workflow }}
+  cancel-in-progress: false
+
+permissions:
+  contents: read
+
+jobs:
+  publish:
+    # forks do not have the Nexus credentials
+    if: github.repository == 'apache/poi'
+    runs-on: ubuntu-latest
+    name: Publish snapshots to Nexus
+    steps:
+    - uses: actions/checkout@v7
+
+    - name: Set up JDK 17
+      uses: actions/setup-java@v6
+      with:
+        distribution: 'temurin'
+        java-version: 17
+        cache: 'gradle'
+
+    - name: Grant execute permission for gradlew
+      run: chmod +x gradlew
+
+    - name: Publish with Gradle
+      run: ./gradlew publish -PjdkVersion=17 --no-daemon
+      env:
+        ORG_GRADLE_PROJECT_apacheSnapshotsUsername: ${{ secrets.NEXUS_USER }}
+        ORG_GRADLE_PROJECT_apacheSnapshotsPassword: ${{ secrets.NEXUS_PW }}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org