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:
+16
-21
@@ -49,42 +49,37 @@ 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.
|
||||||
|
cat > iOS-hello_world.json <<EOF
|
||||||
{
|
{
|
||||||
"name": "Hello World",
|
"name": "Hello World",
|
||||||
"identifier": "com.example.helloworld.source",
|
"bundleIdentifier": "com.example.helloworld",
|
||||||
"sourceURL": "https://apps.bueso.eu/ios-hello_world/source.json",
|
"developerName": "Luis",
|
||||||
"apps": [
|
"localizedDescription": "Hello World iOS app built via Gitea Actions.",
|
||||||
{
|
"iconURL": "https://apps.bueso.eu/ios-hello_world/icon.png",
|
||||||
"name": "Hello World",
|
"downloadURL": "https://apps.bueso.eu/ios-hello_world/iOS-hello_world.ipa",
|
||||||
"bundleIdentifier": "com.example.helloworld",
|
"version": "$VERSION",
|
||||||
"developerName": "Luis",
|
"versionDate": "$DATE",
|
||||||
"localizedDescription": "Hello World iOS app built via Gitea Actions.",
|
"size": $SIZE,
|
||||||
"iconURL": "https://apps.bueso.eu/ios-hello_world/icon.png",
|
"permissions": []
|
||||||
"downloadURL": "https://apps.bueso.eu/ios-hello_world/iOS-hello_world.ipa",
|
|
||||||
"version": "$VERSION",
|
|
||||||
"versionDate": "$DATE",
|
|
||||||
"size": $SIZE,
|
|
||||||
"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/"
|
||||||
|
|||||||
Reference in New Issue
Block a user