diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c187970d752..9e581e04ee7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: # 'podspec_repo_branch' of this repo will be validated and pushed to the # testing repo. local_sdk_repo_dir: /tmp/test/firebase-ios-sdk - local_repo: specstesting + local_repo: specsreleasing podspec_repo_branch: main outputs: matrix: ${{ steps.generate_matrix.outputs.matrix }} @@ -43,7 +43,7 @@ jobs: run: | scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \ bot-access.txt "$bot_token_secret" - - name: Update SpecsTesting repo setup + - name: Update SpecsReleasing repo setup run: | botaccess=`cat bot-access.txt` BOT_TOKEN="${botaccess}" test_version="${nightly_version}" \ @@ -54,7 +54,7 @@ jobs: - name: Clean spec repo run: | botaccess=`cat bot-access.txt` - git clone --quiet https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git "${local_repo}" + git clone --quiet https://"$botaccess"@github.com/Firebase/SpecsReleasing.git "${local_repo}" cd "${local_repo}" # Remove all unhidden dirs, i.e. all podspec dir from the spec repo. rm -Rf -- */ @@ -72,14 +72,14 @@ jobs: path: | ${{ env.local_sdk_repo_dir }}/*.podspec ${{ env.local_sdk_repo_dir }}/*.podspec.json - buildup_SpecsTesting_repo_FirebaseCore: + buildup_SpecsReleasing_repo_FirebaseCore: needs: specs_checking # Don't run on private repo unless it is a PR. if: github.repository == 'Firebase/firebase-ios-sdk' runs-on: macos-14 env: bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} - local_repo: specstesting + local_repo: specsreleasing local_sdk_repo_dir: /tmp/test/firebase-ios-sdk targeted_pod: FirebaseCore steps: @@ -92,16 +92,16 @@ jobs: run: | scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \ bot-access.txt "$bot_token_secret" - - name: Update SpecsTesting repo + - name: Update SpecsReleasing repo run: | botaccess=`cat bot-access.txt` cd scripts/create_spec_repo/ swift build - pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git + pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsReleasing.git BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \ --sdk-repo "${local_sdk_repo_dir}" \ --local-spec-repo-name "${local_repo}" \ - --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \ + --pod-sources 'https://github.com/Firebase/SpecsReleasing' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \ --include-pods "${targeted_pod}" --keep-repo - name: Clean Artifacts if: ${{ always() }} @@ -109,8 +109,8 @@ jobs: pod repo remove "${local_repo}" rm -rf bot-access.txt - buildup_SpecsTesting_repo: - needs: [buildup_SpecsTesting_repo_FirebaseCore, specs_checking] + buildup_SpecsReleasing_repo: + needs: [buildup_SpecsReleasing_repo_FirebaseCore, specs_checking] # Don't run on private repo unless it is a PR. if: github.repository == 'Firebase/firebase-ios-sdk' runs-on: macos-14 @@ -119,7 +119,7 @@ jobs: matrix: ${{fromJson(needs.specs_checking.outputs.matrix)}} env: bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} - local_repo: specstesting + local_repo: specsreleasing local_sdk_repo_dir: /tmp/test/firebase-ios-sdk targeted_pod: ${{ matrix.podspec }} steps: @@ -132,19 +132,19 @@ jobs: run: | scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \ bot-access.txt "$bot_token_secret" - - name: Update SpecsTesting repo + - name: Update SpecsReleasing repo run: | [[ ${{ matrix.allowwarnings }} == true ]] && ALLOWWARNINGS=true botaccess=`cat bot-access.txt` cd scripts/create_spec_repo/ swift build - pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git + pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsReleasing.git # ${ALLOWWARNINGS:+--allow-warnings} will add --allow-warnings to the # command if ${ALLOWWARNINGS} is not null. BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \ --sdk-repo "${local_sdk_repo_dir}" \ --local-spec-repo-name "${local_repo}" \ - --pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \ + --pod-sources 'https://github.com/Firebase/SpecsReleasing' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \ --include-pods "${targeted_pod}" \ --keep-repo ${ALLOWWARNINGS:+--allow-warnings} - name: Clean Artifacts @@ -156,7 +156,7 @@ jobs: abtesting_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -195,7 +195,7 @@ jobs: auth_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -228,7 +228,7 @@ jobs: crashlytics_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -278,7 +278,7 @@ jobs: database_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -315,7 +315,7 @@ jobs: dynamiclinks_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -358,7 +358,7 @@ jobs: firestore_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -395,7 +395,7 @@ jobs: # functions_quickstart: # # Don't run on private repo unless it is a PR. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - # needs: buildup_SpecsTesting_repo + # needs: buildup_SpecsReleasing_repo # env: # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -437,7 +437,7 @@ jobs: inappmessaging_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -476,7 +476,7 @@ jobs: messaging_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -515,7 +515,7 @@ jobs: remoteconfig_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -548,7 +548,7 @@ jobs: storage_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} @@ -586,7 +586,7 @@ jobs: performance_quickstart: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' - needs: buildup_SpecsTesting_repo + needs: buildup_SpecsReleasing_repo env: plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }} diff --git a/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift b/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift index a6ec9ede9fb..44ed9f2da96 100644 --- a/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift +++ b/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift @@ -140,7 +140,7 @@ struct SpecRepoBuilder: ParsableCommand { var excludePods: [String] = [] @Option(help: "GitHub Account Name.") - var githubAccount: String = "FirebasePrivate" + var githubAccount: String = "Firebase" @Option(help: "GitHub Repo Name.") var sdkRepoName: String = "SpecsTesting" diff --git a/scripts/gha-encrypted/release-testing-token.txt.gpg b/scripts/gha-encrypted/release-testing-token.txt.gpg index 7a93dc33980..5828c0c2eb2 100644 Binary files a/scripts/gha-encrypted/release-testing-token.txt.gpg and b/scripts/gha-encrypted/release-testing-token.txt.gpg differ diff --git a/scripts/remove_data.sh b/scripts/remove_data.sh index a99d0940b7c..04dcf25ae8f 100755 --- a/scripts/remove_data.sh +++ b/scripts/remove_data.sh @@ -22,8 +22,4 @@ if [[ ! -z "$LEGACY" ]]; then DIR="${SDK}/Legacy${SDK}Quickstart" fi -# By default, remove potential secrets used in specs repo URLs. -sed -i "" "s/https:\/\/.*@github.com\/FirebasePrivate\/SpecsTesting.git/https:\/\/github.com\/FirebasePrivate\/SpecsTesting.git/g" quickstart-ios/"${DIR}"/Podfile quickstart-ios/"${DIR}"/Podfile.lock -sed -i "" "s/https:\/\/.*@github.com\/FirebasePrivate\/SpecsReleasing.git/https:\/\/github.com\/FirebasePrivate\/SpecsReleasing.git/g" quickstart-ios/"${DIR}"/Podfile quickstart-ios/"${DIR}"/Podfile.lock - rm -f quickstart-ios/"${DIR}"/GoogleService-Info.plist diff --git a/scripts/setup_quickstart.sh b/scripts/setup_quickstart.sh index 5d0ea72ad4c..840b1eaebdc 100755 --- a/scripts/setup_quickstart.sh +++ b/scripts/setup_quickstart.sh @@ -53,7 +53,7 @@ if check_secrets || [[ ${SAMPLE} == "installations" ]]; then $scripts_dir/localize_podfile.swift "$WORKSPACE_DIR"/Podfile "$RELEASE_TESTING" if [ "$RELEASE_TESTING" == "nightly_release_testing" ]; then set +x - sed -i "" '1i\'$'\n'"source 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting.git'"$'\n' "$PODFILE" + sed -i "" '1i\'$'\n'"source 'https://github.com/Firebase/SpecsReleasing.git'"$'\n' "$PODFILE" set -x echo "Source of Podfile for nightly release testing is updated." fi