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
2026-08-09 15:53:14 +00:00
parent e24ebaca5d
commit 46bc2ac6ac
+16 -21
View File
@@ -49,42 +49,37 @@ jobs:
cd ..
ls -la iOS-hello_world.ipa
- name: Generate source.json
- name: Generate app metadata
run: |
VERSION="1.0"
SIZE=$(stat -f%z iOS-hello_world.ipa)
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.
cat > iOS-hello_world.json <<EOF
{
"name": "Hello World",
"identifier": "com.example.helloworld.source",
"sourceURL": "https://apps.bueso.eu/ios-hello_world/source.json",
"apps": [
{
"name": "Hello World",
"bundleIdentifier": "com.example.helloworld",
"developerName": "Luis",
"localizedDescription": "Hello World iOS app built via Gitea Actions.",
"iconURL": "https://apps.bueso.eu/ios-hello_world/icon.png",
"downloadURL": "https://apps.bueso.eu/ios-hello_world/iOS-hello_world.ipa",
"version": "$VERSION",
"versionDate": "$DATE",
"size": $SIZE,
"permissions": []
}
]
"bundleIdentifier": "com.example.helloworld",
"developerName": "Luis",
"localizedDescription": "Hello World iOS app built via Gitea Actions.",
"iconURL": "https://apps.bueso.eu/ios-hello_world/icon.png",
"downloadURL": "https://apps.bueso.eu/ios-hello_world/iOS-hello_world.ipa",
"version": "$VERSION",
"versionDate": "$DATE",
"size": $SIZE,
"permissions": []
}
EOF
cat source.json
cat iOS-hello_world.json
- name: Upload to source host (perlis)
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),
# reachable from the iMac runner over the Tailscale mesh.
ssh -o StrictHostKeyChecking=no \
"${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}" \
"mkdir -p /mnt/appdata/ios-apps/ios-hello_world"
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/"