leerho commented on code in PR #279:
URL: 
https://github.com/apache/datasketches-memory/pull/279#discussion_r3293335254


##########
.github/workflows/stageReleaseSources.yml:
##########
@@ -0,0 +1,92 @@
+name: Stage Release Candidate Source Assets (Manual Trigger)
+
+# file: placeholder.yml (temporary)
+# This workflow acts as Phase 1 of your official Release Candidate process.
+# It handles the clean compilation, license verification, and source packaging
+# on a cloud runner, delivering a pristine ZIP for local signing.
+
+on:
+  workflow_dispatch:
+
+jobs:
+  assemble-source-candidate:
+    runs-on: ubuntu-22.04
+    permissions:
+      contents: read
+
+    steps:
+      # 1. Checkout the clean working workspace context
+      - name: 1. Checkout Branch Context
+        uses: actions/checkout@v5
+        with:
+          ref: ${{ github.ref }}
+          fetch-depth: 0
+
+      # 2. Set up the foundational Java runtime environment
+      - name: 2. Provision JDK 25 for Build Execution
+        uses: actions/setup-java@v5
+        with:
+          java-version: '25'
+          distribution: 'temurin'
+          java-package: jdk
+          architecture: x64
+          cache: 'maven'
+
+      # 3. Dynamically extract the project version from the root pom.xml
+      - name: 3. Extract POM Project Version
+        id: parse-version
+        run: |
+          POM_VERSION=$(mvn help:evaluate -Dexpression=project.version -q 
-DforceStdout)
+          echo "Target Release Version: $POM_VERSION"
+          echo "POM_VERSION=$POM_VERSION" >> $GITHUB_ENV
+
+      # 4. Audit license headers across all source files and submodules
+      - name: 4. Execute Apache RAT License Audit
+        run: |
+          echo "Running corporate license header checks..."
+          mvn apache-rat:check -N
+
+      # Diagnostic Step: Print the target report if the audit drops dead
+      - name: 4b. Diagnostic - Display RAT Failure Report
+        if: always()
+        run: |
+          echo "Checking for java11 submodule RAT report..."
+          if [ -f datasketches-memory-java11/target/rat.txt ]; then
+            echo "=== DATASKETCHES-MEMORY-JAVA11 RAT.TXT ==="
+            cat datasketches-memory-java11/target/rat.txt
+          else
+            echo "No submodule rat.txt report found."

Review Comment:
   After the first commit I changed my strategy and made both workflows be 
template placeholders. See the revised content. The instructions there will 
make more sense.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to