-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #754 from apache/ci-scripts
Use templates for GitHub Actions summary
- Loading branch information
Showing
7 changed files
with
157 additions
and
55 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release of tag `${gitRef}` with POM version `${project.version}` failed ❌ | ||
|
||
You may need to clean up the following: | ||
- The [Nexus staging repository](https://repository.apache.org/#stagingRepositories) (empty if Maven build failed): ${nexusStagingUrl} | ||
- The staged Source bundle: ${svnDistUrl} | ||
|
||
To re-run the release, you will need to delete the tag and re-push it. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
The release of tag `${gitRef}` with POM version `${project.version}` has been staged ✅ | ||
|
||
The next step is to check if the release is reproducible by running a Maven build locally | ||
using against the source dist zip and the tag. | ||
|
||
For the source bundle you can run a command similar to: | ||
|
||
```bash | ||
# create a tmp dir | ||
cd $(mktemp -d) | ||
|
||
# Download the source bundle: | ||
curl -s "${nexusStagingUrl}/org/apache/directory/scimple/scimple/${project.version}/scimple-${project.version}-source-release.zip" -O | ||
|
||
# extract the source zip | ||
unzip scimple-${project.version}-source-release.zip | ||
cd scimple-${project.version} | ||
|
||
# rebuild the source bundle and verify | ||
./mvnw clean verify artifact:compare \ | ||
--threads=1 \ | ||
-Dreference.repo=${nexusStagingUrl} | ||
``` | ||
|
||
From your SCIMple git repository build the `${gitRef}` tag run: | ||
```bash | ||
# If you haven't cloned the repo, run: | ||
# git clone ${project.scm.url}.git | ||
# cd directory-scimple | ||
|
||
# checkout the tag | ||
git checkout ${gitRef} | ||
|
||
# rebuild the source bundle and verify | ||
./mvnw clean verify artifact:compare \ | ||
--threads=1 \ | ||
-Dreference.repo=${nexusStagingUrl} | ||
``` | ||
|
||
If that was successful, start the vote email thread, suggested email template: | ||
|
||
```txt | ||
Subject: [VOTE] Release Apache Directory ${project.name} ${project.version} | ||
This is a call to vote in favor of releasing Apache Directory ${project.name} version ${project.version}. | ||
We solved # issues: | ||
<insert release notes or link to release notes> (see below for suggestion) | ||
Maven Staging Repository: | ||
${nexusStagingUrl} | ||
Dist Staging Url: | ||
${svnDistUrl} | ||
Guide to testing staged releases: | ||
https://maven.apache.org/guides/development/guide-testing-releases.html | ||
Vote open for 72 hours. | ||
[ ] +1 | ||
[ ] +0 | ||
[ ] -1 (please include reasoning) | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The SNAPSHOT build from `${gitRef}` with POM version [`${project.version}`](https://repository.apache.org/#nexus-search;gav~org.apache.directory.scimple~~${project.version}~~) has been deployed ✅ | ||
|
||
Changes in this build since the last release: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
# ---------------------------------------------------------------------------- | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# ---------------------------------------------------------------------------- | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Sets release version, creates tag, and pushes tag to 'origin' | ||
# ---------------------------------------------------------------------------- | ||
script_name=$0 | ||
function usage { | ||
echo "usage: ${script_name} [release-version]" | ||
echo " Sets release version, creates tag, and pushes tag to 'origin'" | ||
exit 1 | ||
} | ||
|
||
if [ "$#" -ne 1 ]; then | ||
usage | ||
fi | ||
|
||
version="${1}" | ||
tag="v${version}" | ||
echo "Updating version to: ${version}" | ||
./mvnw versions:set -DnewVersion=${version} -N | ||
|
||
git commit -am "[release] Setting version to ${version}" | ||
|
||
echo "Creating the tag: ${tag}" | ||
git tag --sign ${tag} -m "[release] ${version}" | ||
git push origin ${tag} |