I have a build and release pipeline for Wordpress php files, but I only want to create a build for the files changed in source control. I am not using a Visual Studio Build task as this does not apply in case of php files I guess.
Here is how the pipeline is configured:
Currently under the build I am using publish artifacts only from $(Build.SourcesDirectory)
and under the release pipeline I am copying those artifacts to the website using FTP upload.
Since the amount of files is larger than 10K,
I want it to only build files that have changed and publish those instead of the whole directory again.
How do I achieve that within the build as the release will automatically pick files up based on the artifacts.