diff --git a/.gitea/workflows/beta.yml b/.gitea/workflows/beta.yml new file mode 100644 index 0000000..d406ee9 --- /dev/null +++ b/.gitea/workflows/beta.yml @@ -0,0 +1,68 @@ +name: Beta (TestFlight) + +on: + push: + branches: + - develop + +jobs: + wake-macos-vm: + runs-on: macos-ctl + steps: + - name: Start macOS VM container + run: docker start macos + + 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 }} + BUILD_NUMBER: ${{ gitea.run_number }} + + steps: + - name: Checkout + run: | + export GIT_TERMINAL_PROMPT=0 + export GIT_ASKPASS=/bin/false + export SSH_ASKPASS=/bin/false + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" + git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . + git checkout "${{ gitea.sha }}" + + - name: Write App Store Connect API key + run: | + cat > Darwin/fastlane/apikey.json < Darwin/fastlane/apikey.json <