release: bugfix missing .tar.gz upload

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
Aaron Teo 2025-11-29 23:46:34 +08:00
parent bd119c7471
commit 865bcb4abc
No known key found for this signature in database
1 changed files with 1 additions and 3 deletions

View File

@ -866,8 +866,6 @@ jobs:
with:
tag_name: ${{ steps.tag.outputs.name }}
body: |
## ${{ steps.tag.outputs.name }}
> [!WARNING]
> **Release Format Update**: Linux releases will soon use .tar.gz archives instead of .zip. Please make the necessary changes to your deployment scripts.
@ -913,7 +911,7 @@ jobs:
const fs = require('fs');
const release_id = '${{ steps.create_release.outputs.id }}';
for (let file of await fs.readdirSync('./release')) {
if (path.extname(file) === '.zip' || path.extname(file) === '.tar.gz') {
if (path.extname(file) === '.zip' || file.endsWith('.tar.gz')) {
console.log('uploadReleaseAsset', file);
await github.repos.uploadReleaseAsset({
owner: context.repo.owner,