]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
correctly mark the release as prerelease
authorDmitry Misharov <dmitry@openssl.org>
Tue, 18 Mar 2025 16:11:40 +0000 (17:11 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 20 Mar 2025 10:15:16 +0000 (11:15 +0100)
release must be marked as prerelease if "alpha" or "beta" is in tag name

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27092)

.github/workflows/make-release.yml

index ab0255d405df27252fc1dddc3d4c22568ae57bd9..1e2c7f25f7cb2ac3b93036940b6876c3103fbb98 100644 (file)
@@ -38,4 +38,5 @@ jobs:
         GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
       run: |
         VERSION=$(echo ${{ github.ref_name }} | cut -d "-" -f 2-)
-        gh release create ${{ github.ref_name }} -t "OpenSSL $VERSION" -d --notes " " -R ${{ github.repository }} ${{ github.ref_name }}/assets/*
+        PRE_RELEASE=$([[ ${{ github.ref_name }} =~ alpha|beta ]] && echo "-p" || echo "")
+        gh release create ${{ github.ref_name }} $PRE_RELEASE -t "OpenSSL $VERSION" -d --notes " " -R ${{ github.repository }} ${{ github.ref_name }}/assets/*