From 66a22cd5cfdef148834063a473fcc2c318871dd8 Mon Sep 17 00:00:00 2001 From: Sebastian Tarach Date: Thu, 18 Jan 2024 20:45:02 +0100 Subject: [PATCH] initial release --- .github/workflows/build.yaml | 9 +-------- bin/create | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6bf3a50..ccce1cb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,13 +27,6 @@ jobs: ./bin/create shell: bash - # Get the release ID using GitHub REST API - - name: Get Release ID - id: get_release - run: | - release_id=$(curl -s -X GET -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${GITHUB_REF_NAME}" | jq -r '.id') - echo "release_id=$release_id" >> $GITHUB_OUTPUT - - name: Setup Hub uses: Geertvdc/setup-hub@v1.0.0 env: @@ -43,7 +36,7 @@ jobs: - name: Upload Release Assets run: | set -x - assets=("sslgen.phar" "sslgen.phar.sha1" "sslgen.phar.sha256") + assets=("sslgen.phar" "sslgen.phar.sha1" "sslgen.phar.sha256" "sslgen.phar.sha384") tag_name="${GITHUB_REF##*/}" for asset in "${assets[@]}"; do hub release edit --attach "${asset}" -m "" "$tag_name" diff --git a/bin/create b/bin/create index bf1b513..dab39ba 100755 --- a/bin/create +++ b/bin/create @@ -15,8 +15,10 @@ $phar->setDefaultStub('bin/console.php'); $filePath = __DIR__ . '/../' . $fileName; $sha1 = sha1_file($filePath); $sha256 = hash_file('sha256', $filePath); +$sha384 = hash_file('sha384', $filePath); file_put_contents($filePath . '.sha1', $sha1); file_put_contents($filePath . '.sha256', $sha256); +file_put_contents($filePath . '.sha384', $sha384); echo "Filesize: " . filesize($filePath) . PHP_EOL; echo "SHA1: " . $sha1 . PHP_EOL;