This work describes the process of nanofabrication of phase-shifted Bragg gratings on the end facet of a multimode optical fiber with a pulsed DC sputtering system based on a single target. Several structures have been explored as a function of parameters such as the number of layers or the phase-shift. The experimental results, corroborated with simulations based on plane-wave propagation in a stack of homogeneous layers, indicate that the phase-shift can be controlled with a high degree of accuracy. The device could be used both in communications, as a filter, or in the sensors domain. As an example of application, a humidity sensor with wavelength shifts of 12 nm in the range of 30 to 90% relative humidity (200 pm/% relative humidity) is presented.