1. Create a behavior of type buff.
2. Set the field "Period" to 1.0 seconds, so that it will activate every second.
3. Create an effect of type modify player.
4. Change the field "Resources" in your custom effect to whatever resources you want it to give.
5. Go back to your behavior. In the field "Effects - Periodic", add your effect.
6. Add behavior to units.