ci: add iPhone deploy workflow + CI/CD setup docs #4

Merged
millianlmx merged 50 commits from ci/iphone-deploy-workflow into main 2026-06-27 22:49:53 +02:00
Showing only changes of commit 7a02a8949e - Show all commits

View File

@@ -47,6 +47,9 @@ jobs:
cd tabatago-swift
xcodegen generate
- name: Install ios-deploy
run: brew install ios-deploy
- name: Build & Install on iPhone
env:
IPHONE_UDID: ${{ secrets.IPHONE_UDID }}
@@ -64,6 +67,9 @@ jobs:
CODE_SIGN_STYLE=Automatic \
2>&1 | tail -20
# Install on connected iPhone
ios-deploy --bundle ../build/Build/Products/Debug-iphoneos/TabataGo.app --id ${IPHONE_UDID}
echo "✅ App built for iPhone (UDID: ${IPHONE_UDID})"
- name: Post "Ready to test" comment
@@ -71,8 +77,8 @@ jobs:
GT_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: ${{ vars.GITEA_URL || 'https://gitea.1000co.fr' }}
run: |
PR="${{ gitea.event.pull_request.number }}"
REPO="${{ gitea.repository }}"
PR="${{ github.event.pull_request.number }}"
REPO="${{ github.repository }}"
BODY="## 📱 Prêt à tester !\\n\\nL'app a été déployée sur ton iPhone.\\n\\n- Teste les changements\\n- Reply **LGTM** pour merger\\n- Reply **KO** pour bloquer"
curl -s -X POST \
-H "Authorization: token ${GT_TOKEN}" \
@@ -93,9 +99,9 @@ jobs:
GT_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_URL: ${{ vars.GITEA_URL || 'https://gitea.1000co.fr' }}
run: |
PR_NUMBER="${{ gitea.event.pull_request.number }}"
REPO="${{ gitea.repository }}"
PR_TITLE="${{ gitea.event.pull_request.title }}"
PR_NUMBER="${{ github.event.pull_request.number }}"
REPO="${{ github.repository }}"
PR_TITLE="${{ github.event.pull_request.title }}"
API="${GITEA_URL}/api/v1/repos/${REPO}"
MAX_TRIES=240 # 2h = 240 × 30s
TRIES=0