Write per-app metadata + upload to root source aggregator
Build iOS App / Build .ipa and publish source (push) Successful in 26s

This commit is contained in:
Hermes committed 2026-08-09 15:53:14 +00:00
1 parent e24ebaca5d
commit 46bc2ac6ac
1 file changed
+7 -12
+7 -12
View File
@@ -49,17 +49,14 @@ jobs:
cd .. cd ..
ls -la iOS-hello_world.ipa ls -la iOS-hello_world.ipa
- name: Generate source.json - name: Generate app metadata
run: | run: |
VERSION="1.0" VERSION="1.0"
SIZE=$(stat -f%z iOS-hello_world.ipa) SIZE=$(stat -f%z iOS-hello_world.ipa)
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
cat > source.json <<EOF # Per-app metadata file. The perlis aggregator folds this into the
{ # root source.json at https://apps.bueso.eu/source.json.
"name": "Hello World", cat > iOS-hello_world.json <<EOF
"identifier": "com.example.helloworld.source",
"sourceURL": "https://apps.bueso.eu/ios-hello_world/source.json",
"apps": [
{ {
"name": "Hello World", "name": "Hello World",
"bundleIdentifier": "com.example.helloworld", "bundleIdentifier": "com.example.helloworld",
@@ -72,19 +69,17 @@ jobs:
"size": $SIZE, "size": $SIZE,
"permissions": [] "permissions": []
} }
]
}
EOF EOF
cat source.json cat iOS-hello_world.json
- name: Upload to source host (perlis) - name: Upload to source host (perlis)
run: | run: |
# Upload .ipa + source.json to perlis via SSH. # Upload .ipa + per-app metadata to perlis via SSH.
# PERLIS_SSH_HOST is the Tailscale MagicDNS name (perlis.bueso.loc), # PERLIS_SSH_HOST is the Tailscale MagicDNS name (perlis.bueso.loc),
# reachable from the iMac runner over the Tailscale mesh. # reachable from the iMac runner over the Tailscale mesh.
ssh -o StrictHostKeyChecking=no \ ssh -o StrictHostKeyChecking=no \
"${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}" \ "${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}" \
"mkdir -p /mnt/appdata/ios-apps/ios-hello_world" "mkdir -p /mnt/appdata/ios-apps/ios-hello_world"
scp -o StrictHostKeyChecking=no \ scp -o StrictHostKeyChecking=no \
iOS-hello_world.ipa source.json \ iOS-hello_world.ipa iOS-hello_world.json \
"${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}:/mnt/appdata/ios-apps/ios-hello_world/" "${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}:/mnt/appdata/ios-apps/ios-hello_world/"