fix: serve latest.json via GitHub Pages for auto-updater endpoint

This commit is contained in:
Test
2026-02-28 19:39:28 +01:00
parent f52ce5c618
commit 5ef4f2d642
2 changed files with 3 additions and 1 deletions

View File

@@ -202,6 +202,8 @@ jobs:
run: |
mkdir -p _site
gh api repos/${{ github.repository }}/releases --paginate > _site/releases.json
# Copy latest.json to GitHub Pages for auto-updater endpoint
gh release download --repo ${{ github.repository }} --pattern "latest.json" --output _site/latest.json || true
cat > _site/index.html << 'HTMLEOF'
<!DOCTYPE html>
<html lang="en">

View File

@@ -48,7 +48,7 @@
"plugins": {
"updater": {
"endpoints": [
"https://github.com/refactoringhq/laputa-app/releases/latest/download/latest.json"
"https://refactoringhq.github.io/laputa-app/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDRFQzlGQ0RFM0E1MTIzNDkKUldSSkkxRTYzdnpKVG13M0Zwd3M1RzErbWhJeEhBQUQyaG90bHBtMkNzMm1MNERZRlpXSGFRMTUK"
}