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

sciabarracom pushed a commit to branch 0.9.0
in repository https://gitbox.apache.org/repos/asf/openserverless.git

commit e845c9a226268133740df2b68be896c24dc4d48f
Author: Michele Sciabarra <[email protected]>
AuthorDate: Thu Sep 3 11:09:00 2026 +0200

    improved release task
---
 Taskfile.yml | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/Taskfile.yml b/Taskfile.yml
index d7ee442..2702760 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -262,16 +262,21 @@ tasks:
         done
 
     release:
-      desc: release
+      desc: release - the source must be in version folder and you need a gpg 
key to sign
       requires:
-        vars: [ V ]
+        vars: [ VER, KEY ]
       cmds:
-      - git tag "v{{.V}}"
-      - echo "v{{.V}}" >RELEASE
+      - test -d ../../{{.VER}}/openserverless || { echo "parent dir does not 
match with version" ; exit 1; }
+      - gpg --list-secret-keys | grep  "{{or .KEY "missing" }}" || { echo "key 
not found in gpg" ;   exit 1; }
       - >
           {{if eq OS "darwin"}}gtar{{else}}tar{{end}}
           -C .. --exclude='.git'
-          --transform 's,^openserverless,openserverless-v{{.V}},'
-          -czvf ../openserverless-{{.V}}-src.tar.gz
+          --transform 's,^openserverless,openserverless-{{.VER}},'
+          -czvf ../openserverless-{{.VER}}-src.tar.gz
           openserverless
+      - gpg --armor --detach-sign --local-user {{.KEY}} 
../openserverless-{{.VER}}-src.tar.gz
+      - shasum -a 512 ../openserverless-{{.VER}}-src.tar.gz 
>../openserverless-{{.VER}}-src.tar.gz.sha512
+      - uv run releasing.py {{.VER}} >../../{{.VER}}.txt
+      - git tag "v{{.VER}}"
+      - echo "Next steps git push --tags and send email"
       #- git push --tags

Reply via email to