Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 847b418

Browse files
authored
Update Workflow File
1 parent 97fbd07 commit 847b418

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/build-unsigned-ipa.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,4 +493,36 @@ jobs:
493493
else
494494
git push origin HEAD:main
495495
fi
496+
shell: bash
497+
498+
- name: Push apps.json to Pages repo (ProStore-iOS.github.io) using PAT
499+
if: steps.check_release.outputs.exists == 'false'
500+
env:
501+
PAGES_PAT: ${{ secrets.PAGES_PAT }}
502+
run: |
503+
set -e
504+
VERSION="${{ steps.get_version.outputs.version }}"
505+
PAGES_REPO="ProStore-iOS/ProStore-iOS.github.io"
506+
PAGES_DIR=$(mktemp -d)
507+
508+
echo "Cloning pages repo (masked token)..."
509+
git clone --depth 1 "https://x-access-token:${PAGES_PAT}@github.com/${PAGES_REPO}.git" "$PAGES_DIR"
510+
511+
echo "Copying app-repo.json -> apps.json in pages repo"
512+
cp app-repo.json "$PAGES_DIR/apps.json"
513+
514+
cd "$PAGES_DIR"
515+
git config user.name "github-actions[bot]"
516+
git config user.email "github-actions[bot]@users.noreply.github.com"
517+
518+
# Only commit if there's a change
519+
git add apps.json
520+
if git diff --quiet --cached; then
521+
echo "No changes to apps.json — nothing to commit/push."
522+
exit 0
523+
fi
524+
525+
git commit -m "Update apps.json from ProStore v${VERSION}"
526+
echo "Pushing apps.json to ${PAGES_REPO}:main"
527+
git push "https://x-access-token:${PAGES_PAT}@github.com/${PAGES_REPO}.git" HEAD:main
496528
shell: bash

project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ targets:
2222
properties:
2323
CFBundleDisplayName: "ProStore"
2424
CFBundleName: "prostore"
25-
CFBundleVersion: "1"
26-
CFBundleShortVersionString: "1.0.0"
25+
CFBundleVersion: "2"
26+
CFBundleShortVersionString: "1.0.1"
2727
UILaunchStoryboardName: "LaunchScreen"
2828
NSPrincipalClass: "UIApplication"
2929
NSAppTransportSecurity:

0 commit comments

Comments
 (0)