From ac8dd3a5520be721d7a21652d8e8da1df5dcba81 Mon Sep 17 00:00:00 2001 From: Axel Martinez Date: Wed, 2 Dec 2026 07:57:53 +0100 Subject: [PATCH] Upload to TestFlight without a personal certificate, using an App Store Connect environment --- .github/workflows/containers-build.yml | 2 +- .github/workflows/containers-release.yml | 2 +- .github/workflows/containers-testflight.yml | 13 +++++++++---- Containers.xcodeproj/project.pbxproj | 2 ++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/containers-build.yml b/.github/workflows/containers-build.yml index be70fc8..84c5064 100644 --- a/.github/workflows/containers-build.yml +++ b/.github/workflows/containers-build.yml @@ -1,4 +1,4 @@ -name: Build & Test +name: Build & test permissions: contents: read diff --git a/.github/workflows/containers-release.yml b/.github/workflows/containers-release.yml index 0fb9407..fa3d0ce 100644 --- a/.github/workflows/containers-release.yml +++ b/.github/workflows/containers-release.yml @@ -1,4 +1,4 @@ -name: Publish Release +name: Publish release permissions: contents: write diff --git a/.github/workflows/containers-testflight.yml b/.github/workflows/containers-testflight.yml index f105706..87929c4 100644 --- a/.github/workflows/containers-testflight.yml +++ b/.github/workflows/containers-testflight.yml @@ -44,9 +44,9 @@ jobs: false fi - # Build & Test runs on the commit when it's pushed to main. Re-run this + # Build & test runs on the commit when it's pushed to main. Re-run this # workflow once that run passes. - - name: Check that Build & Test passed + - name: Check that Build & test passed if: github.ref_type == 'tag' run: | CONCLUSION=$( @@ -55,14 +55,17 @@ jobs: ) if [ "${CONCLUSION}" != "success" ] ; then - echo "::error::Build & Test hasn't passed on ${GITHUB_SHA}, the commit for tag ${VERSION}." + echo "::error::Build & test hasn't passed on ${GITHUB_SHA}, the commit for tag ${VERSION}." false fi # Formatting, lint and tests run on every pull request; the archive builds the app. + # The signing secrets live in the App Store Connect environment, whose protection + # rules decide which runs can read them. deploy: name: Upload to TestFlight needs: validate + environment: App Store Connect timeout-minutes: 60 runs-on: macos-26 env: @@ -85,6 +88,8 @@ jobs: - name: Show Xcode version run: xcodebuild -version + # The archive is signed to run locally, so only the export needs certificates: + # Apple Distribution for the app and Mac Installer Distribution for its package. - name: Install signing certificates env: SIGNING_CERTIFICATES_P12: ${{ secrets.SIGNING_CERTIFICATES_P12 }} @@ -194,7 +199,7 @@ jobs: rm -f "${API_KEY_PATH}" # The notes are written by hand in the draft, with the pull requests for each - # change. Publish Release publishes it once the version is live. + # change. Publish release publishes it once the version is live. draft: name: Create draft release needs: deploy diff --git a/Containers.xcodeproj/project.pbxproj b/Containers.xcodeproj/project.pbxproj index cab63be..af87f7e 100644 --- a/Containers.xcodeproj/project.pbxproj +++ b/Containers.xcodeproj/project.pbxproj @@ -432,6 +432,7 @@ 773509122F34EA2F00C5471F /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; @@ -447,6 +448,7 @@ 773509132F34EA2F00C5471F /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1;