This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/main by this push:
new da7787058e Update stage-release-candidate.yml (#2965)
da7787058e is described below
commit da7787058e6b032172f886e0257dd89a938709da
Author: PJ Fanning <[email protected]>
AuthorDate: Mon May 11 08:06:07 2026 +0100
Update stage-release-candidate.yml (#2965)
---
.github/workflows/stage-release-candidate.yml | 87 +++++++++++++++++++++++++--
1 file changed, 81 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/stage-release-candidate.yml
b/.github/workflows/stage-release-candidate.yml
index fe51a0ddba..4a53da6abe 100644
--- a/.github/workflows/stage-release-candidate.yml
+++ b/.github/workflows/stage-release-candidate.yml
@@ -20,8 +20,12 @@ name: Stage release candidate
on:
workflow_dispatch:
inputs:
- source-tar:
- description: "Stage the source tarball to svn"
+ source-tar-to-svn:
+ description: "Stage the source tarball to svn (old)"
+ default: true
+ type: boolean
+ source-tar-to-atr:
+ description: "Stage the source tarball to ATR (new)"
default: true
type: boolean
jars:
@@ -41,7 +45,7 @@ jobs:
# Partly based on
https://github.com/apache/daffodil/blob/main/.github/workflows/release-candidate.yml
stage-release-candidate-to-svn:
runs-on: ubuntu-24.04
- if: ${{ inputs.source-tar }}
+ if: ${{ inputs.source-tar-to-svn }}
steps:
- name: Check version parameter
run: |-
@@ -110,6 +114,67 @@ jobs:
PEKKO_SVN_DEV_PASSWORD: ${{ secrets.PEKKO_SVN_DEV_PASSWORD }}
REF: ${{ github.ref_name }}
+ stage-release-candidate-to-atr:
+ permissions:
+ id-token: write
+ contents: read
+ runs-on: ubuntu-24.04
+ if: ${{ inputs.source-tar-to-atr }}
+ steps:
+ - name: Check version parameter
+ run: |-
+ # To be enabled after this workflow has been tested:
+ #if [[ "$REF" != "v"* ]]; then
+ # echo "Trigger this workflow on a version tag"
+ # exit 1
+ #fi
+ if [[ "$REF" != *"-RC"* ]]; then
+ echo "Trigger this workflow on an RC tag"
+ exit 1
+ fi
+ export VERSION=$(echo $REF | sed -e "s/.\(.*\)-.*/\\1/")
+ export RC_VERSION=$(echo $REF | tail -c +2)
+ echo "Version: $VERSION"
+ echo "RC Version: $RC_VERSION"
+ env:
+ REF: ${{ github.ref_name }}
+
+ - name: Checkout
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #
v5.0.1
+ with:
+ fetch-depth: 0
+ fetch-tags: true
+ persist-credentials: false
+
+ - name: Generate source archive
+ id: generate-source-archive
+ run: |-
+ VERSION=$(echo $REF | sed -e "s/.\(.*\)-.*/\\1/")
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
+ PREFIX=apache-pekko-$VERSION
+ DATE=$(git log -n1 --format=%cs | tr -d -)
+ TARBALL=$PREFIX-src-$DATE.tgz
+
+ mkdir dist
+ git archive --format=tar --prefix=$PREFIX/ HEAD | gzip -6 -n >
dist/$TARBALL
+ cd dist
+ sha512sum $TARBALL > $TARBALL.sha512
+ env:
+ REF: ${{ github.ref_name }}
+
+ - name: Sign source archive
+ run: |-
+ echo "$PEKKO_GPG_SECRET_KEY" | gpg --batch --import --import-options
import-show
+ gpg -ab dist/*.tgz
+ env:
+ PEKKO_GPG_SECRET_KEY: ${{ secrets.PEKKO_GPG_SECRET_KEY }}
+
+ - name: Upload source dist
+ uses:
apache/tooling-actions/upload-to-atr@ca6ed9e095c40db61c42a90db2599bb2fbc2319f
+ with:
+ project: pekko
+ version: ${{ steps.generate-source-archive.outputs.version }}
+
stage-jars-to-nexus:
runs-on: ubuntu-24.04
if: ${{ inputs.jars }}
@@ -140,7 +205,7 @@ jobs:
persist-credentials: false
- name: Setup Java 17
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 #
v5.0.0
+ uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #
v5.2.0
with:
distribution: temurin
java-version: 17
@@ -148,6 +213,10 @@ jobs:
- name: Install sbt
uses: sbt/setup-sbt@508b753e53cb6095967669e0911487d2b9bc9f41 # v1.1.22
+ - name: Install Graphviz
+ run: |-
+ sudo apt-get install graphviz
+
# We intentionally do not use the Coursier cache for release candiates,
# to reduce attack surface
@@ -176,8 +245,14 @@ jobs:
export MODULE="Pekko (Core)"
export VERSION=$(echo $REF | sed -e "s/.\(.*\)-.*/\\1/")
export RC_VERSION=$(echo $REF | tail -c +2)
+ if [[ "$VERSION" =~ ^1\.([0-9]+)\.[0-9]+$ ]]; then
+ export BRANCH="1.${BASH_REMATCH[1]}.x"
+ else
+ export BRANCH="main"
+ fi
echo "VERSION=$VERSION"
echo "RC_VERSION=$RC_VERSION"
+ echo "BRANCH=$BRANCH"
export DISCUSS=$(curl
'https://lists.apache.org/api/stats.lua?list=dev&domain=pekko.apache.org' | jq
".emails.[] | .subject, .mid" | grep -A1 "$MODULE $VERSION" | tail -1 | tr -d
\")
echo "DISCUSS=$DISCUSS"
@@ -234,7 +309,7 @@ jobs:
The VOTE will pass if we have more positive votes than negative votes
and there must be a minimum of 3 approvals from Pekko PMC members.
Anyone voting in favour of the release, could you please provide a
list of the checks you have done?
- The vote will be left open until [VOTE_ENDS_UTC].
+ The vote will be left open for at least 72hrs.
[ ] +1 approve
[ ] +0 no opinion
@@ -254,7 +329,7 @@ jobs:
To compile from the source, please refer to:
-
https://github.com/apache/pekko/blob/main/README.md#building-from-source
+
https://github.com/apache/pekko/blob/$BRANCH/README.md#building-from-source
To verify the binary build, please refer to:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]