Skip to content

Commit

Permalink
initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
tarach committed Jan 18, 2024
1 parent 85ddd5a commit 66a22cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
env:
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66a22cd

Please sign in to comment.