diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82cb92d8..ba36019d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 850ecdcd..8288a3b3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -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" }