diff options
author | Dmitry Misharov <dmitry@openssl.org> | 2024-10-10 16:15:55 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2025-01-15 16:00:58 +0100 |
commit | d8af77e7368a72f75ad790350a322e8f6c3c2968 (patch) | |
tree | 0c76842b71ffd8f8b893212f0a6d7908dc4e9263 | |
parent | genpkey: Avoid leaving empty file if encryption passphrase does not match (diff) | |
download | openssl-d8af77e7368a72f75ad790350a322e8f6c3c2968.tar.xz openssl-d8af77e7368a72f75ad790350a322e8f6c3c2968.zip |
Add a GitHub workflow to make a release
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25662)
-rw-r--r-- | .github/workflows/make-release.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml new file mode 100644 index 0000000000..688f08aa98 --- /dev/null +++ b/.github/workflows/make-release.yml @@ -0,0 +1,41 @@ +# Copyright 2021-2024 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the Apache License 2.0 (the "License"). You may not use +# this file except in compliance with the License. You can obtain a copy +# in the file LICENSE in the source distribution or at +# https://www.openssl.org/source/license.html + +name: "Make release" + +on: + push: + tags: + - "openssl-*" + +jobs: + release: + runs-on: "releaser" + steps: + - name: "Checkout" + uses: "actions/checkout@v4" + with: + fetch-depth: 1 + ref: ${{ github.ref_name }} + github-server-url: "https://github.openssl.org/" + repository: "openssl/openssl" + token: ${{ secrets.GHE_TOKEN }} + path: ${{ github.ref_name }} + - name: "Prepare assets" + run: | + cd ${{ github.ref_name }} + ./util/mktar.sh + mkdir assets && mv ${{ github.ref_name }}.tar.gz assets/ && cd assets + openssl sha1 < ${{ github.ref_name }}.tar.gz | cut -d " " -f 2 > ${{ github.ref_name }}.tar.gz.sha1 + openssl sha256 < ${{ github.ref_name }}.tar.gz | cut -d " " -f 2 > ${{ github.ref_name }}.tar.gz.sha256 + gpg -u ${{ vars.signing_key_uid }} -o ${{ github.ref_name }}.tar.gz.asc -sba ${{ github.ref_name }}.tar.gz + - name: "Create release" + env: + 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/* |