An analogue of phase-shifted Bragg grating (PSBG) for Bloch surface waves (BSW) propagating along the interface between a one-dimensional photonic crystal and a homogeneous medium is proposed. The studied structure consists of a set of dielectric ridges located on the photonic crystal surface, the height of which is chosen so that they encode the required distribution of the effective refractive index. Rigorous simulation results of the surface wave diffraction on the proposed structure are compared with the plane wave diffraction on a conventional phase-shifted Bragg grating. The simulation results demonstrate the possibility of using the proposed analogue of PSBG for temporal differentiation of picosecond BSW pulses. The obtained results can find application in the design of the prospective on-chip systems for all-optical analog computing.