Skip to content

Update workflows#279

Open
leerho wants to merge 7 commits into
mainfrom
update_workflows
Open

Update workflows#279
leerho wants to merge 7 commits into
mainfrom
update_workflows

Conversation

@leerho
Copy link
Copy Markdown
Member

@leerho leerho commented May 22, 2026

This adds a manually triggered workflow to stage the source files to allow the user to add the GPG signature (.asc) file, whereby the user will upload the files tothe Apache SVN dist/dev/datasketches directory.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new manually triggered GitHub Actions workflow intended to build and stage a source-release bundle (ZIP + SHA-512) for local GPG signing prior to uploading to Apache SVN dist/dev.

Changes:

  • Introduces a workflow_dispatch workflow to run RAT checks, build a source archive, compute SHA-512, and upload artifacts.
  • Extracts the Maven project version at runtime to name the staged source ZIP consistently.
  • Adds a diagnostic step intended to surface RAT output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,92 @@
name: Stage Release Candidate Source Assets (Manual Trigger)

# file: placeholder.yml (temporary)
Comment on lines +51 to +58
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."
Comment on lines +61 to +82
# 5. Clean workspace and assemble the official source release container
- name: 5. Build Apache Source Release Archive
run: |
echo "Assembling project distribution ZIP..."
mvn clean assembly:single

# 6. Relocate and calculate the SHA-512 cryptographic checksum string
- name: 6. Stage Deliverables and Compute Checksums
run: |
# Create a temporary staging area for the artifact collection
mkdir -p staging_dir

# Define standard names based on the extracted POM version
SRC_ZIP="datasketches-memory-${{ env.POM_VERSION }}-src.zip"

echo "Locating generated assembly asset..."
cp target/datasketches-memory-${{ env.POM_VERSION }}-source-release.zip staging_dir/$SRC_ZIP

cd staging_dir
echo "Generating SHA-512 checksum signature file..."
sha512sum $SRC_ZIP > $SRC_ZIP.sha512

Comment on lines +77 to +84
cp target/datasketches-memory-${{ env.POM_VERSION }}-source-release.zip staging_dir/$SRC_ZIP

cd staging_dir
echo "Generating SHA-512 checksum signature file..."
sha512sum $SRC_ZIP > $SRC_ZIP.sha512

echo "Verification Checksum Content:"
cat $SRC_ZIP.sha512
Comment on lines +26 to +33
- 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants