Skip to content

Commit 62f99d1

Browse files
author
linyuan.yang
committed
release ipa
1 parent 5e925f5 commit 62f99d1

1 file changed

Lines changed: 59 additions & 1 deletion

File tree

‎.github/workflows/release-app.yml‎

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
gh api "/repos/$REPO/releases/tags/$TAG" --jq '.assets[] | "\(.id)\t\(.name)"' |
107107
while IFS=$'\t' read -r id name; do
108108
case "$name" in
109-
"sbot_${VERSION}_android.apk"|sbot-vscode-*.vsix)
109+
"sbot_${VERSION}_android.apk"|"sbot_${VERSION}_ios_unsigned.ipa"|sbot-vscode-*.vsix)
110110
continue
111111
;;
112112
"latest.json"|"latest-app.json"|"sbot.app.tar.gz"|"sbot.app.tar.gz.sig"|sbot_*.app.tar.gz|sbot_*.app.tar.gz.sig|sbot_${VERSION}_*)
@@ -269,6 +269,64 @@ jobs:
269269
cp "$APK" "$DEST"
270270
gh release upload "$TAG" "$DEST" -R "$REPO" --clobber
271271
272+
release-ios:
273+
needs: [check, release-desktop]
274+
if: ${{ !cancelled() && needs.release-desktop.result == 'success' }}
275+
runs-on: macos-latest
276+
steps:
277+
- uses: actions/checkout@v5
278+
279+
- uses: pnpm/action-setup@v6
280+
with:
281+
version: 10.33.0
282+
283+
- uses: actions/setup-node@v5
284+
with:
285+
node-version: 24
286+
cache: pnpm
287+
288+
- name: Install Rust
289+
uses: dtolnay/rust-toolchain@stable
290+
with:
291+
targets: aarch64-apple-ios
292+
293+
- name: Cache cargo registry
294+
uses: actions/cache@v5
295+
with:
296+
path: |
297+
~/.cargo/registry
298+
~/.cargo/git
299+
packages/app/src-tauri/target
300+
key: ios-cargo-app-${{ hashFiles('packages/app/src-tauri/Cargo.lock') }}
301+
restore-keys: |
302+
ios-cargo-app-
303+
304+
- run: pnpm install --frozen-lockfile
305+
306+
- name: Init iOS project
307+
working-directory: packages/app
308+
run: pnpm ios:init
309+
310+
- name: Build unsigned IPA
311+
working-directory: packages/app
312+
run: pnpm ios:build --target aarch64 --no-sign --ci
313+
314+
- name: Upload unsigned IPA to release
315+
env:
316+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
317+
REPO: ${{ github.repository }}
318+
TAG: ${{ needs.check.outputs.tag }}
319+
VERSION: ${{ needs.check.outputs.version }}
320+
run: |
321+
IPA=$(find packages/app/src-tauri/gen/apple -name '*.ipa' -type f | head -n1)
322+
if [ -z "$IPA" ]; then
323+
echo "::error::Unsigned iOS IPA was not found."
324+
exit 1
325+
fi
326+
DEST="sbot_${VERSION}_ios_unsigned.ipa"
327+
cp "$IPA" "$DEST"
328+
gh release upload "$TAG" "$DEST" -R "$REPO" --clobber
329+
272330
publish-vscode:
273331
needs: [check, release-desktop]
274332
if: ${{ !cancelled() && needs.release-desktop.result == 'success' }}

0 commit comments

Comments
 (0)