Build firmware and SPIFFS for automatic deployment


I am currently working on a system that uses an esp32. I have implemented an automatic OTA update protocol for both the firmware and the spiffs partition.

It works great, so now I would like to automate the process of pushing the bin files (firmware.bin and spiffs.bin) to my server when a new commit is made to the master branch of my repository.

To do that, I have created an environment in the .ini file called “release” in which I have the target “buildfs” to make the spiffs bin file, and “upload” to build the firmware. Then, a custom script handle the publication of those bin files.

The problem is that it seems there is no target to only build the firmware without uploading it. Am I missing something?