Update workflows#279
Open
leerho wants to merge 7 commits into
Open
Conversation
There was a problem hiding this comment.
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_dispatchworkflow 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' |
tisonkun
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.