Skip to content

Commit 5510466

Browse files
committed
test yml
1 parent 9df1b32 commit 5510466

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
run: ls -l
124124
- name: Debug VERSION
125125
run: |
126-
echo "VERSION is: ${VERSION}"
126+
echo "VERSION is: $VERSION"
127127
env:
128128
VERSION: ${{ env.VERSION }}
129129
- name: Create GitHub Release
@@ -134,7 +134,7 @@ jobs:
134134
VERSION: ${{ env.VERSION }}
135135
with:
136136
tag_name: ${{ github.ref_name }}-${{ github.run_id }}
137-
release_name: Release v${VERSION}
137+
release_name: Release v $VERSION
138138
draft: false
139139
prerelease: false
140140

@@ -143,12 +143,10 @@ jobs:
143143
run: |
144144
files=($(ls ./*${VERSION}* 2>/dev/null || echo ""))
145145
if [ ${#files[@]} -eq 0 ]; then
146-
echo "Error: No files found matching VERSION ${VERSION}"
146+
echo "Error: No files found matching VERSION $VERSION"
147147
exit 1
148148
fi
149-
for file in "${files[@]}"; do
150-
echo "file=$file" >> $GITHUB_ENV
151-
done
149+
"file=${files[@]}" >> $GITHUB_ENV
152150
echo "Found files: ${files[@]}"
153151
env:
154152
VERSION: ${{ env.VERSION }}
@@ -158,10 +156,11 @@ jobs:
158156
uses: actions/upload-release-asset@v1
159157
with:
160158
upload_url: ${{ steps.create_release.outputs.upload_url }} # Use the upload URL from the create-release step
161-
asset_path: ./*${{ env.VERSION }}* # Adjust the path if necessary
159+
asset_path: $file # Adjust the path if necessary
162160
asset_name: ${{ env.VERSION }}-asset # Name of the asset to upload
163161
asset_content_type: application/octet-stream
164162
env:
163+
file: ${{ env.file }}
165164
VERSION: ${{ env.VERSION }}
166165

167166

0 commit comments

Comments
 (0)