Build input file cannot be found {path}. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

I am working with a bare workflow

I am trying to configure react native firebase

I have configured it properly locally by adding the google-services.json and GoogleService-Info.plist files at the root of my project.

I then configured my app in the following way

module.exports = {
  expo: {
    owner: "tmi",
    name: "AeonPass-Scanner",
    slug: "AeonPass-Scanner",
    version: "1.0.0",
    orientation: "portrait",
    icon: "./src/assets/icon.png",
    userInterfaceStyle: "light",
    splash: {
      image: "./src/assets/splash.png",
      resizeMode: "cover",
      backgroundColor: "#ffffff",
    },
    assetBundlePatterns: ["**/*"],
    jsEngine: "hermes",
    ios: {
      supportsTablet: true,
      bundleIdentifier: "com.tmitboules.AeonPassScanner",
      jsEngine: "hermes",
      googleServicesFile:
        process.env.GOOGLE_SERVICE_INFO_PLIST || "./GoogleService-Info.plist",
    },
    android: {
      googleServicesFile:
        process.env.GOOGLE_SERVICES_JSON || "./google-services.json",
      adaptiveIcon: {
        foregroundImage: "./src/assets/adaptive-icon.png",
        backgroundColor: "#ffffff",
      },
      package: "com.tmitboules.AeonPassScanner",
    },
    web: {
      favicon: "./assets/favicon.png",
    },
    extra: {
      eas: {
        projectId: "5824acd0-ca7a-4eff-9050-9b3836458c87",
      },
    },
    runtimeVersion: "exposdk:48.0.0",
    updates: {
      url: "https://u.expo.dev/5824acd0-ca7a-4eff-9050-9b3836458c87",
    },
    plugins: [
      "@react-native-firebase/app",
      "@react-native-firebase/auth",
      [
        "expo-build-properties",
        {
          ios: {
            useFrameworks: "static",
          },
        },
      ],
    ],
  },
};

This runs perfectly on my local machine obviously.

In order to not check my plist and json files into Github I saved each as a secret in expo as you can see from the environment variables above. However when I try to run a build I get the following error

 error: Build input file cannot be found: '/Users/expo/workingdir/build/ios/AeonPassScanner/GoogleService-Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'AeonPassScanner' from project 'AeonPassScanner')

The weird thing is that at the read app config step it properly recognizes the path to the files.

What is going on here?