Skip to content

Commit a2992de

Browse files
committed
Fix generation of sourceUrl in manifest.json
1 parent 656a9a3 commit a2992de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,17 @@ jobs:
6868
run: |
6969
ZIP=$(ls ./artifacts/*.zip | head -n1)
7070
MD5=$(ls ./artifacts/*.md5 | head -n1)
71+
ZIP_BASENAME=$(basename "$ZIP")
7172
echo "zip=$ZIP" >> $GITHUB_OUTPUT
7273
echo "md5=$MD5" >> $GITHUB_OUTPUT
74+
echo "zip_basename=$ZIP_BASENAME" >> $GITHUB_OUTPUT
7375
7476
# 8️⃣ Generate manifest.json
7577
- name: Generate manifest.json
7678
env:
7779
RELEASE_TAG: ${{ github.event.release.tag_name }}
7880
RELEASE_PACKAGE_PATH: ${{ steps.artifacts.outputs.zip }}
79-
RELEASE_URL: https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/$(basename ${{ steps.artifacts.outputs.zip }})
81+
RELEASE_URL: https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/${{ steps.artifacts.outputs.zip_basename }}
8082
RELEASE_MD5: ${{ steps.artifacts.outputs.md5 }}
8183
run: node scripts/generate-manifest.js
8284

0 commit comments

Comments
 (0)