You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/08/31 12:37:20 UTC

[camel-kamelets] branch kamelets-release-improv created (now e5ff51fd)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch kamelets-release-improv
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at e5ff51fd Adding script facilities for completing the steps in release process

This branch includes the following new commits:

     new f00dbe79 Adding script facilities for completing the steps in release process
     new e5ff51fd Adding script facilities for completing the steps in release process

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 01/02: Adding script facilities for completing the steps in release process

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch kamelets-release-improv
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit f00dbe79004ed68b8e7302905efced78d088d0b3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 31 14:30:43 2022 +0200

    Adding script facilities for completing the steps in release process
---
 release-utils/scripts/sign.sh          | 35 ++++++++++++++++++++++++++++++++++
 release-utils/scripts/upload-source.sh | 34 +++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/release-utils/scripts/sign.sh b/release-utils/scripts/sign.sh
new file mode 100755
index 00000000..cdd8b47b
--- /dev/null
+++ b/release-utils/scripts/sign.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# 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.
+
+# This is a utility script to sign and sha512 all files in the given directory.
+
+if [ "$#" -ne 1 ]; then
+    echo "usage: $0 dir"
+    exit 1
+fi
+
+dir=$1
+
+pushd . && cd $dir
+
+for f in $(ls | grep -e ".*tar.gz$");
+do
+    sha512sum -b $f > $f.sha512
+    gpg --output $f.asc --armor --detach-sig $f
+done
+
+popd
diff --git a/release-utils/scripts/upload-source.sh b/release-utils/scripts/upload-source.sh
new file mode 100755
index 00000000..28252439
--- /dev/null
+++ b/release-utils/scripts/upload-source.sh
@@ -0,0 +1,34 @@
+#!/bin/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.
+
+set -e
+
+if [ "$#" -lt 2 ]; then
+    echo "usage: $0 upload-sources release-version destination-version"
+    exit 1
+fi
+
+location=$(dirname $0)
+version=$1
+
+mkdir $1/
+cd $1/
+
+wget https://github.com/apache/camel-kamelets/archive/refs/tags/v$1.tar.gz -O camel-kamelets-sources-$1.tar.gz
+cd ../
+./sign.sh $1/
+svn import $1/ https://dist.apache.org/repos/dist/dev/camel/camel-kamelets/$2/ -m "Import camel-kamelets release"


[camel-kamelets] 02/02: Adding script facilities for completing the steps in release process

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch kamelets-release-improv
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e5ff51fd9ff97cacfbba6fd768cf5d1595d08830
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 31 14:36:57 2022 +0200

    Adding script facilities for completing the steps in release process
---
 README.md                              | 19 +++++++++++++++++++
 release-utils/scripts/upload-source.sh |  2 ++
 2 files changed, 21 insertions(+)

diff --git a/README.md b/README.md
index 1893761b..23500e01 100644
--- a/README.md
+++ b/README.md
@@ -215,6 +215,23 @@ Then perform the release:
 ./mvnw release:perform -Prelease
 ```
 
+Go to https://repository.apache.org/ and close the staging repository.
+
+A URL will be generated for the repository, like: https://repository.apache.org/content/repositories/orgapachecamel-xxxx. The URL needs to be communicated during the voting process.
+
+Now run:
+
+```
+cd release-utils/scripts/
+./upload-sources.sh $CAMEL_KAMELET_VERSION $CAMEL_KAMELET_VERSION
+```
+
+You'll be requested to insert the password to unlock the secret key to sign the artifacts and after uploading to nexus dev repository.
+
+You could verify the result at the following URL:
+
+https://dist.apache.org/repos/dist/dev/camel/camel-kamelets/<$CAMEL_KAMELET_VERSION> 
+
 Restore Kamelets:
 
 ```
@@ -228,3 +245,5 @@ git commit -am "Restore Kamelets for development"
 
 git push upstream main
 ```
+
+Send an email to dev mailing list to start the vote.
diff --git a/release-utils/scripts/upload-source.sh b/release-utils/scripts/upload-source.sh
index 28252439..4ab9cf9c 100755
--- a/release-utils/scripts/upload-source.sh
+++ b/release-utils/scripts/upload-source.sh
@@ -32,3 +32,5 @@ wget https://github.com/apache/camel-kamelets/archive/refs/tags/v$1.tar.gz -O ca
 cd ../
 ./sign.sh $1/
 svn import $1/ https://dist.apache.org/repos/dist/dev/camel/camel-kamelets/$2/ -m "Import camel-kamelets release"
+
+rm -rf $1/