Skip to content

Commit 5d13435

Browse files
committed
chore: add referer to DEPLOY request,. fix readme img urls
1 parent 6b06ee9 commit 5d13435

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/DEPLOY.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
- name: Deploy to Blender Extensions Platform API
6161
env:
6262
BLENDER_API_URL: https://extensions.blender.org/api/v1/extensions/${{ env.EXT_ID }}/versions/upload/
63+
BLENDER_REFERER_URL: https://extensions.blender.org/add-ons/${{ env.EXT_ID }}/
6364
run: |
6465
# Extract release notes from CHANGELOG.md
6566
RELEASE_NOTES=$(awk -v ver="${{ env.ext_version }}" '
@@ -80,6 +81,7 @@ jobs:
8081
# Send request and capture response + HTTP code
8182
RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST "$BLENDER_API_URL" \
8283
-H "Authorization:bearer ${{ secrets.BLENDER_EXTENSIONS_TOKEN }}" \
84+
-H "Referer:$BLENDER_REFERER_URL" \
8385
-F "version_file=@$ext_zip_name" \
8486
-F "release_notes=$RELEASE_NOTES_ESCAPED")
8587

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# JSBSim Viewer
22

33
<p align="center">
4-
<img src="./branding/JSBSim-Icon.png"
4+
<img src="./assets/JSBSim-Icon.png"
55
alt="JSBSim Viewer logo" height="120em" />
66
</p>
77

@@ -35,10 +35,9 @@ This is useful for:
3535
✅ Supports **automatic updates**.
3636
❌ Does not support **automatic updates**.
3737

38-
3938
## 🚀 Usage
4039

4140
1. In Blender, open **File → Import → JSBSim Flight Dynamics Model (.xml)**.
4241
2. Select a JSBSim XML file to import.
4342

44-
![example.png](./branding/example.png)
43+
![example.png](./assets/example.png)

0 commit comments

Comments
 (0)