Skip to content

Commit 63e05c5

Browse files
authored
chore: updates to release candidate staging (#923)
* chore: improved staging from CI Some more HTTP prefixes * chore: correctly pass version to ATR
1 parent 14de437 commit 63e05c5

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/stage-release-candidate.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ jobs:
104104
cd dist
105105
106106
export RC_VERSION=$(echo $REF | tail -c +2)
107+
export DIR="HTTP-$RC_VERSION"
107108
108-
mkdir $RC_VERSION
109-
cp ../archive/* $RC_VERSION
110-
svn add $RC_VERSION
111-
svn commit --username "$PEKKO_SVN_DEV_USERNAME" --password "$PEKKO_SVN_DEV_PASSWORD" --message "Stage Pekko $RC_VERSION" $RC_VERSION
109+
mkdir $DIR
110+
cp ../archive/* $DIR
111+
svn add $DIR
112+
svn commit --username "$PEKKO_SVN_DEV_USERNAME" --password "$PEKKO_SVN_DEV_PASSWORD" --message "Stage Pekko HTTP $RC_VERSION" $DIR
112113
env:
113114
PEKKO_SVN_DEV_USERNAME: ${{ secrets.PEKKO_SVN_DEV_USERNAME }}
114115
PEKKO_SVN_DEV_PASSWORD: ${{ secrets.PEKKO_SVN_DEV_PASSWORD }}
@@ -147,8 +148,10 @@ jobs:
147148
persist-credentials: false
148149

149150
- name: Generate source archive
151+
id: generate-source-archive
150152
run: |-
151153
VERSION=$(echo $REF | sed -e "s/.\(.*\)-.*/\\1/")
154+
echo "version=$VERSION" >> $GITHUB_OUTPUT
152155
PREFIX=apache-pekko-http-$VERSION
153156
DATE=$(git log -n1 --format=%cs | tr -d -)
154157
TARBALL=$PREFIX-src-$DATE.tgz
@@ -171,7 +174,7 @@ jobs:
171174
uses: apache/tooling-actions/upload-to-atr@ca6ed9e095c40db61c42a90db2599bb2fbc2319f
172175
with:
173176
project: pekko-http
174-
version: ${{ env.VERSION }}
177+
version: ${{ steps.generate-source-archive.outputs.version }}
175178

176179
stage-jars-to-nexus:
177180
runs-on: ubuntu-24.04
@@ -253,7 +256,7 @@ jobs:
253256
export SENDER=$(curl "https://api.github.com/users/$ACTOR" | jq .name | tr -d \")
254257
echo "SENDER=$SENDER"
255258
256-
echo "This template can be used to start a vote, either via manual email or via https://release-test.apache.org/compose/pekko/$VERSION"
259+
echo "This template can be used to start a vote, either via manual email or via https://release-test.apache.org/compose/pekko-http/$VERSION"
257260
echo
258261
cat <<EOF;
259262
Subject: [VOTE] Release Apache $MODULE $RC_VERSION
@@ -268,8 +271,8 @@ jobs:
268271
269272
The release candidate:
270273
271-
https://dist.apache.org/repos/dist/dev/pekko/$RC_VERSION
272-
https://release-test.apache.org/vote/pekko/$VERSION
274+
https://dist.apache.org/repos/dist/dev/pekko/HTTP-$RC_VERSION
275+
https://release-test.apache.org/vote/pekko-http/$VERSION
273276
274277
This release has been signed with a PGP key available here:
275278
@@ -327,7 +330,7 @@ jobs:
327330
328331
https://pekko.apache.org/download.html#verifying-downloads
329332
330-
You can vote on ATR at https://release-test.apache.org/vote/pekko/$VERSION
333+
You can vote on ATR at https://release-test.apache.org/vote/pekko-http/$VERSION
331334
or manually by replying to this email.
332335
333336

0 commit comments

Comments
 (0)