We numerically and experimentally demonstrate a Yb-doped fiber ultrashort pulse generator based on self-phase modulation and alternating spectral filtering, operating at a wavelength of 1060 nm and providing a stable ultrashort pulse train. Pulses with energy up to 2.8 nJ were generated experimentally and were limited only by available pump power.