I'm researching how to set up automated binary SPM deployments to our internal services. Basically I upload the new xcframework to our storage backend, and then I update the Git repo defining our SPM Binary Package with the new URL.
But updating with the Git repo with the new URL via automation seems like the tricky part. I could have the automation find and replace the section of the Package.swift file referencing the URL. But I've always found find and replace kind of brittle. I was investigating having Package.swift go look for a text file in the same repo that contains the URL for the binary xcframework. But I can't seem to find a reliable way to get to the root of the SPM repository on the client machine to find a text file containing the xcframework URL.
Is there a canonical or community standard way to handle situations like this? I looked through the forums and I didn't see anything. Wanted to see if anyone else had worked with automated deployments of binary packages before I started digging deeper.