Write per-app metadata + upload to root source aggregator
Build iOS App / Build .ipa and publish source (push) Successful in 26s
Build iOS App / Build .ipa and publish source (push) Successful in 26s
This commit is contained in:
@@ -49,17 +49,14 @@ 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
|
||||
{
|
||||
"name": "Hello World",
|
||||
"identifier": "com.example.helloworld.source",
|
||||
"sourceURL": "https://apps.bueso.eu/ios-hello_world/source.json",
|
||||
"apps": [
|
||||
# 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",
|
||||
"bundleIdentifier": "com.example.helloworld",
|
||||
@@ -72,19 +69,17 @@ jobs:
|
||||
"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/"
|
||||
|
||||
Reference in New Issue
Block a user