Skip to content

Commit a4c5c48

Browse files
committed
test workflow
1 parent 588fb0a commit a4c5c48

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,17 @@ jobs:
118118
with:
119119
path: artifacts
120120

121-
- name: Check Artifacts
122-
run: ls -l artifacts
121+
- name: Create releases directory
122+
run: mkdir -p releases
123+
124+
- name: Package artifacts into tar.gz
125+
run: |
126+
for dir in artifacts/*; do
127+
if [ -d "$dir" ]; then
128+
base_name=$(basename "$dir")
129+
tar -czf "releases/${base_name}.tar.gz" -C "$dir" .
130+
fi
131+
done
123132
124133
- name: Check Release type
125134
run: |
@@ -139,4 +148,4 @@ jobs:
139148
with:
140149
tag_name: ${{ needs.job_build_qmodem.outputs.git_tag }}
141150
prerelease: ${{ env.RELEASE_TYPE == 'beta' || env.RELEASE_TYPE == 'rc' }}
142-
files: artifacts/*
151+
files: releases/*

0 commit comments

Comments
 (0)