name: Beta (TestFlight) on: push: branches: - develop jobs: wake-macos-vm: runs-on: docker container: image: alpine:3.20 steps: - name: Install ssh client run: apk add --no-cache openssh-client - name: Start macOS VM container run: | mkdir -p ~/.ssh echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \ ${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} start build-and-upload: needs: wake-macos-vm runs-on: macos-release env: APPLE_ID: ${{ secrets.APPLE_ID }} ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }} DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }} steps: - name: Checkout uses: actions/checkout@v4 - name: Set build number run: | cd Darwin agvtool new-version -all ${{ gitea.run_number }} - name: Write App Store Connect API key run: | cat > Darwin/fastlane/apikey.json < ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \ ${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} stop