Skip to content

Commit 89ff008

Browse files
committed
test show file list
1 parent 1304736 commit 89ff008

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/gh-pages.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,24 +147,32 @@ jobs:
147147
echo "Error: No files found matching VERSION ${VERSION}"
148148
exit 1
149149
fi
150-
for file in "${files[@]}"; do
151-
echo "file=$file" >> $GITHUB_ENV
152-
done
153150
echo "Found files: ${files[@]}"
151+
file_list=$(IFS=','; echo "${files[*]}")
152+
echo "file_list=$file_list" >> $GITHUB_ENV
153+
154+
- name: Debug file list
155+
run: |
156+
echo "Files to upload: ${{ env.file_list }}"
157+
# If needed, you can split this into an array and process each file individually:
158+
IFS=',' read -r -a file_array <<< "${{ env.file_list }}"
159+
for file in "${file_array[@]}"; do
160+
echo "Processing file: $file"
161+
done
154162
env:
155-
VERSION: ${{ env.VERSION }}
163+
file_list: ${{ env.file_list }}
156164

157165
- name: Upload Release Assets
158166
id: upload-release-asset
159167
uses: actions/upload-release-asset@v1
160168
with:
161169
upload_url: ${{ steps.create_release.outputs.upload_url }} # Use the upload URL from the create-release step
162-
asset_path: ./*${{ env.VERSION }}* # Adjust the path if necessary
170+
asset_path: ${{ env.file_list }} # Adjust the path if necessary
163171
asset_name: ${{ env.VERSION }}-asset # Name of the asset to upload
164172
asset_content_type: application/octet-stream
165173
env:
166174
VERSION: ${{ env.VERSION }}
167-
file: ${{ env.file }}
175+
file_list: ${{ env.file_list }}
168176

169177

170178
# - name: Upload Windows Installer

0 commit comments

Comments
 (0)