From 55b6c63da1ce4780bd82426014edd70584619e93 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 22 Oct 2026 14:45:02 +0200 Subject: [PATCH] Publish AltStore source to dl.yattee.stream/altstore.json --- .github/workflows/update-altstore.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/update-altstore.yml b/.github/workflows/update-altstore.yml index 1610e7cf..bb5b2e39 100644 --- a/.github/workflows/update-altstore.yml +++ b/.github/workflows/update-altstore.yml @@ -76,3 +76,25 @@ jobs: git diff --cached --quiet && echo "No changes to commit" && exit 0 git commit -m "Update AltStore source for ${{ env.VERSION_NUMBER }} (${{ env.BUILD_NUMBER }})" git push + - name: Publish to dl.yattee.stream (gh-pages) + run: | + # Served as https://dl.yattee.stream/altstore.json. The release + # workflow's Sparkle job pushes appcast.xml to the same branch, so + # retry on a rejected push instead of racing it. + git fetch origin +refs/heads/gh-pages:refs/heads/gh-pages + git worktree add gh-pages gh-pages + cd gh-pages + for attempt in 1 2 3; do + cp ../altstore-source.json altstore.json + git add altstore.json + if git diff --cached --quiet; then + echo "altstore.json already up to date" + exit 0 + fi + git commit -m "Publish AltStore source: ${{ env.VERSION_NUMBER }} (${{ env.BUILD_NUMBER }})" + git push origin gh-pages && exit 0 + git reset --hard -q HEAD~1 + git pull -q --rebase origin gh-pages + done + echo "::error::Could not push altstore.json to gh-pages" + exit 1