aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Kooman <fkooman@tuxed.net>2019-04-23 23:26:37 +0200
committerFrançois Kooman <fkooman@tuxed.net>2019-04-23 23:26:37 +0200
commit2845d160f35aa70dd4b2ff04225c2ddce05566d1 (patch)
tree367bd75597af28b877aa353732f2cb56865abd9c
parent10cd5d30c68d27a31c4eae4c3445d4d655fd5569 (diff)
downloadwww.tuxed.net-2845d160f35aa70dd4b2ff04225c2ddce05566d1.zip
www.tuxed.net-2845d160f35aa70dd4b2ff04225c2ddce05566d1.tar.gz
www.tuxed.net-2845d160f35aa70dd4b2ff04225c2ddce05566d1.tar.xz
update post
-rw-r--r--posts/git_signed_releases.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/posts/git_signed_releases.md b/posts/git_signed_releases.md
index d29b363..eed27fb 100644
--- a/posts/git_signed_releases.md
+++ b/posts/git_signed_releases.md
@@ -41,6 +41,25 @@ Now, with that out of the way, you can put the following POSIX shell script in
git archive --prefix "${PROJECT_NAME}-${PROJECT_VERSION}/" "${PROJECT_VERSION}" -o "${RELEASE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
gpg2 --armor --detach-sign "${RELEASE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
+If you want to create releases for _all_ tags, you can use the
+`make_release_all` script:
+
+ #!/bin/sh
+ PROJECT_NAME=$(basename "${PWD}")
+ RELEASE_DIR="${PWD}/release"
+
+ mkdir -p "${RELEASE_DIR}"
+
+ for PROJECT_VERSION in $(git tag)
+ do
+ echo "Version: ${PROJECT_VERSION}"
+ if [ ! -f "${RELEASE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz" ]
+ then
+ git archive --prefix "${PROJECT_NAME}-${PROJECT_VERSION}/" "${PROJECT_VERSION}" -o "${RELEASE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
+ gpg2 --armor --detach-sign "${RELEASE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.xz"
+ fi
+ done
+
### Creating a Release
Now, from your checked out repository you can run `make_release` and it will
@@ -56,14 +75,14 @@ first argument to `make_release`:
The following files are created:
- $ ls -l php-yubitwee-*
+ $ ls -l release/php-yubitwee-*
-rw-rw-r--. 1 fkooman fkooman 8240 Jun 8 17:18 php-yubitwee-1.1.4.tar.xz
-rw-rw-r--. 1 fkooman fkooman 833 Jun 8 17:18 php-yubitwee-1.1.4.tar.xz.asc
You can verify the signature:
- $ gpg2 --verify php-yubitwee-1.1.4.tar.xz.asc
- gpg: assuming signed data in 'php-yubitwee-1.1.4.tar.xz'
+ $ gpg2 --verify release/php-yubitwee-1.1.4.tar.xz.asc
+ gpg: assuming signed data in 'release/php-yubitwee-1.1.4.tar.xz'
gpg: Signature made Fri 08 Jun 2018 05:18:37 PM CEST
gpg: using RSA key 6237BAF1418A907DAA98EAA79C5EDD645A571EB2
gpg: Good signature from "François Kooman <fkooman@tuxed.net>" [ultimate]
@@ -78,4 +97,4 @@ software.
to overwrite the signature file
**UPDATE** (2019-04-23): do not overwrite existing release(s), remove the
-`--yes` flag again
+`--yes` flag again, add `make_release_all` script, fix `release` path